Ask HN: What are your favorite developer-efficiency tips?
566 pointsI 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 commentsWhen 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".
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 :)
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.
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'.
Also, learning, though that can be hard to justify.
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.
All comments shown.
Couldn't load more comments. Check your connection and try again.