What’s your programming workflow like? What tools do you use to facilitate your work? (e.g., language, IDE, plugins, command-line tools) Feel free to wax poetic as much as you want, we’re looking for in-depth answers here!
(my projects tend to be performance-minded reliable distributed systems)
Wow, I’m really glad I read through this discussion section - I was recently going through a new year planning exercise and wishing I had something basically identical to void.
It’s also really instructive to read about distributed system programming specifically - I’ve recently been doing stuff at work that would benefit from a lot of this structure. Thanks for writing it up!
I use vim. I also use IntelliJ (Java) and XCode (Apple). I write shell scripts and abuse build tools. I am a fanatical about automation.
To start out with, I have a “dev” user account so that my work environment is completely separate from anything personal. This means I don’t have to worry about separate profiles for Chrome and Firefox or any other per-application isolation. This also means that my dock is filled with only the applications I will ever use such as all of the browsers and their betas as well as Textmate, Terminal, Github, Mail, Skype (some clients like to use that), and any folders local and remote for the projects I’m working on.
I use LiveReload in combination with a basic sass --watch or compass watch as a very basic way of automation. I run a very basic python -m SimpleHTTPServer just so that I don’t have to deal with browsers that try to open up other applications when I’m browsing files locally. I’ve always used the iOS simulators, but more and more I’ve relied on the responsive views in various browsers.
python -m SimpleHTTPServer
I use RVM which I’m not a fan of just because it complicates the process, but it’s necessary to have some sort of manager for Ruby otherwise you’ll land into a bunch of weirdness that you didn’t even think about.
I’ve started using Digital Ocean to test projects remotely in which case I have a default nginx or apache server for dealing with the files that I scp (like an animal) to.
I use RVM which I’m not a fan of
Have you looked into chruby? I just switched to it from RVM and it seems to work well.
I took your suggestion and installed it. My main gripe is mostly with “kids these days” and needing to install all this extra stuff for Sass/Compass (even if Sass is extremely helpful and I couldn’t work without it).
I like that chruby is more “Unix-y” and simply does less, but I was caught off guard by the fact that it does not automatically switch rubies. I would recommend it to anyone who uses Ruby simply as a way to get something else done.
There’s chruby-auto which will automatically switch rubies, if that helps.
For a new prototype, it’s usually not much more complicated than git init (or cargo new or whatever is appropriate), start vim, hack, ^Z, make, fg, hack some more, ^Z, repeat.
At some point I start tmux because the backgrounding is getting annoying/I want to leave the program running while I continue to hack.
Emacs as my “IDE” unless I can’t make changes to a file “on save” as some open source projects don’t control for whitespace on the end of lines and such. If it’s not Emacs it’s probably Sublime Text.
ITerm2 (because Mac) and zsh are where I spend my time when I’m not in Emacs.
Pretty much everywhere I do work uses git in some form (GitHub, Phabricator, etc).
If I control a project end to end my stack looks like:
Because I bias towards starting with microservices I’m also pretty set on automating as much as possible. Infrakit is interesting in the “server automation” space since it can use Terraform to set up the servers. CI/CD, lerna-semantic-release for JS-based monorepo stuff, etc.
I feel like my workflow is different for each isolatable portion of the stack, so I won’t list them all since this is getting long :)
I’ve been doing a lot of stuff with scheme recently. I work in vim + tmux, and generally start with three panes: one for my editor, one for my REPL directly below, and one for tests. I’ll set entr to run my test file on every *.scm file change and have tslime setup in vim so I can quickly send stuff to my REPL.
I also have been working through The Little MLer, and use roughly the same workflow (minus the tests). I like being able to view code in an editor rather than trying to write large chunks of code in a REPL, so I’m pretty happy with my workflow at this point.
The biggest issue I have is I wish there were a window manager that allowed me to ignore windows in my alt-tab list while still being able to view them (I’m currently using cwm). This would allow me to move my tests to a separate window without getting in the way of my alt-tabbing around. I might fork cwm and add an ignorelist feature to it at some point, when I’ve get time :P
We do pair programming so the first thing is I talk to my pair about what ticket we want to take next in JIRA (usually there’s more than one with similar priority, but obviously if one stands out that’s the one we take.)
We’ll choose either my or my pair’s cloud9 workspace to work in, create a branch in Git related to the JIRA ticket id, and then open/create relevant files for the ticket.
Make changes to the relevant files (for my job this is usually in PHP, sometimes JS, sometimes HTML/SCSS), update/create unit tests, commit the branch (all unit tests for the repo run on a pre-commit hook) and push it up to the main repo. Then we’ll post a code review, move the ticket into Review status and move on to another ticket.
I really like cloud9 for pair programming. I works really well for us, we use it in SSH workspace mode so we’re doing development work on our own development servers.
Started a new job in Ruby on Rails recently, first time working in open-source full time. Been using the same toolset I’ve used for personal work on that stack for a while.
For assignments, we have standard Agile stuff. We use Jira, which maintains a list of stories in our sprint and who’s working on them. With daily scrums, the team has a pretty good idea of the rough status of everything and what everyone’s thinking of working on next. Also getting used to spending a fair amount of time reviewing teammate’s code/PRs - we use Github private for all of our projects. For personal projects, I haven’t found much value in maintaining really formal lists of tasks. At most, just a quick text file or something.
Main toolset is tmux+vim with a few plugins. Rvm, Bundler, and Git to manage code and plugins and versions and such. Been using Pry Debugger for all debugging, which mostly works well. Our team does mostly backend stuff, so only occasionally need Chrome and debug tools, and sometimes use Postman for sending requests. Using MySql and Postgresql for databases, with Sequel Pro and PSequel, respectively, for most DB connection needs - using command-line for even light DBA stuff doesn’t appeal much to me.
For work organization, we’re using email, Slack, Jira, and Github PRs mostly, and I also keep plain-text diary-like notes in this tool I built that I’m calling Daily Notes. All of the other tools that I’ve found for doing stuff like this put too much process into it IMHO, or don’t work well for multiple years worth of notes. I wanted something to hold and search years worth of daily notes in a way that kept plain, dumb text instead of trying to force me into some particular workflow, and would be on a server to access from multiple locations, etc. Naturally, I just built it instead of looking really hard for something already out there.
I am still a student, but I still do some programming on my free time.
I use a terminal multiplexer – dvtm, some vi-like editor, and command line for everything if possible.
I wrote something on how to manage terminals while working in the command line.
I used Emacs before too.
Gitlab, geany, make, c++, git-gui, gitg, and meld. And a browser.