Lurker News
I recently started integrating tmux and vim into my workflows. Obviously, it was a huge efficiency booster. What are some other tools (custom built or off-the-shelf), hotkeys, workflows that were game-changing for you as a dev? I'm interested in hearing about anything and everything (stuff from ctrl+l to clear the terminal to little-known git commands to larger-scale strategies like CI/CD)

Comments (522) 158 threads

Earlier comments
billziss1 reply#
I only have only one real tip for you: learn to get in the zone.

When I am in the zone I have an intense desire to create a beautiful masterpiece in my chosen art and revel in its elegance and beauty. When I am in the zone outside distractions are eliminated and my mind is fully focused on the task at hand. When I am truly in the zone matters such as health, family, children, work and (when I was younger) even hunger or the need to sleep disappear; all that remains is the task. My brain has maximum cycles to iterate again and again until I achieve greater understanding and/or arrive at a solution.
I do not have very good general tips on how to get in the zone. I have some things that work for me, although not always. They include:
- Real-world isolation: These days where everyone is at home, I go to a corner in my garden where my family knows not to bother me.
- Virtual-world isolation: No emails. No browsing. No notifications of any kind. Phone on silent. Absolutely no Slack, Teams, etc!
- Friction-free programming environment: If the build takes 20 minutes, then it will be hard to remain in the zone. If the Mac has stuck keys get them fixed or buy a laptop from a different brand.
- Headphones with some favorite music: For programming I like trance, the more repetitive the better. I often use this youtube channel: https://www.youtube.com/user/MrLemilica2
- Review previous work on the subject: This acts as a brain warm up for me and usually puts me in the right mood.
- Some times work better than others: When I was younger it was far easier to get in the zone at night. These days I do not have that luxury because of family.
- Work on a problem that excites you: It is much easier to get in the zone when the subject matter interests you. It is harder (although still possible) when the subject is less interesting.
- No context switching: Choose a task and stick to it for at least a few hours.
- Get the non-enjoyable tasks out of the way: (This may not work for everyone.) I like to complete tasks that I do not enjoy (e.g. administrative or legal) first. I can then continue my work care-free instead of having this niggling thought in the back of my mind: "do not forget to respond to the lawyer".

drmpeg#
For me, listening to music is just another distraction.
fxtentacle2 replies#
Purchase a good IDE.

It'll provide similar benefits as writing your own text editor (which was suggested here).
It can also provide type hints and type checks for dynamically typed languages, thereby making them more like statically typed languages (also suggested in here).
Plus a good IDE will speed up searching as well as index the source code to make things click-able, thereby making large code bases or dependencies easier to navigate (also suggested in here).
So basically you can get a large chunk of the improvements that others have suggested in this thread simply by purchasing a good IDE :)

Joeri#
For a number of years I used the jetbrains IDE's (at alternating times I used phpstorm, webstorm and intellij), commonly perceived as best in class. Then I switched employers to a place that had standardized on VS code, so I moved over as well.

I have to say that while it was hard to get used to in the beginning, it is surprising how good VS code is. I get 80% of the featureset of jetbrains' products, for free. Specifically, all of the features you mentioned VS code does just as well when doing web dev.
The only thing I'm missing is the framework-specific automation helping you easily set up projects, builds, unit tests, and so on. VS code can automate those things, but there is more googling involved.

jonnypotty#
I think I've tried most java ides and they all suffer from the same issue which is that they're slow, unwieldy, and the benifit they bring (apart from debugging) are mostly not benifit at all. Learning how to write correct code without and IDE auto fixing everything you get wrong with a right click has been very valuable to me. Learning my build tool outside of crappy IDE integration has been an education too. Basically getting rid of my IDE has made me a MUCH better developer although I admit they do powerful and useful things.
_56591 reply#
Have a sharpened pencil and stack of paper handy always. I can't say how many times it's saved me a lot of trouble programming some behavior because I was able to draw a picture of what I wanted it to do.
unnouinceput#
I am opposite of that. I can't stand paper and pen/pencils, so whenever I need to visualize something it's Paint time. And if I need to note something down it's Notepad time (well, Notepad++ lately).
DannyB22 replies#
Automate repetitive tasks that can be automated. A task may take ten minutes. Automating it may take hours, and thus seems too expensive.

If this task is going to be done many times, then the automation WILL pay off. Running the automated task might take less time than the manual steps. And you can be doing something else.
The more of these kinds of tasks that you can automate, the bigger of a lever it becomes.
One of the oldest examples would be 'make'.

XCSme3 replies#
Another advantage is that you are less likely to make errors while using the automated way.
Groxx#
And you'll be quicker to automate the next thing, since you have more experience automating.
kortex1 reply#
It also creates documentation/repeatable processes.

Also, learning, though that can be hard to justify.

DannyB2#
The automation might, in some cases BECOME the documentation.
mekster1 reply#
I disagree. If your automation isn't well thought out, edge cases might just screw every target and you might have hard time rolling it back.
DannyB2#
In my experience, that is the unusual case, not the ordinary case.

Further, when that would happen, it is typically obvious that some bigger change has occurred which required the automated procedure to be updated and tested.

Load more comments