The top 7 software engineering workflow tips I wish I knew earlier š§°
Your time matters.
1 hour of efficiency gain per day saves you 1 month per year.
Iāll prove it to you:
1 hour per day x 5 days per week x 52 weeks = 260 hours saved per year
260 hours / 8 hours per day = 32.5 work days per year.
Thatās 1 month you could be closer to promotion, relaxing, or doing whatever the heck you want.
Optimizing the things I do every day has led to me averaging 1ā2 pull requests per day over my last few years as a software engineer. Itās not the best metric (and not something to strive for), but it gives some frame of reference.
Today, Iām going to share the biggest workflow tips that made this possible
š” Big idea
Optimize the tasks you do every day, multiple times per day.
For example, taking the equation at the start of the article, for every 2 minutes you save per workday in automation or a better process, you get back 1 workday per year.
You can use the chart below to decide if something is worth optimizing, but I donāt.
I optimize repeated daily tasks and hope for the best š¤
xkcd time optimization chart. Note: Itās not entirely accurate to a āworking dayā since itās based on a 24-hour day. Source
In each section, Iāll cover the most frequent parts of a software engineerās workflow.
Each section includes what I do, but you may find things youāre already doing more efficiently than me! Thatās great. Feel free to tell me! Iām always looking to improve.
(1) š» Git / Terminal workflow
There are 3 huge time savers here:
- Autocomplete past commands
- Aliases for commands
- Easily manage Git files
At a high level, I recommend checking out the table of contents in this terminal makeover article. However, Iāll go through 3 major time savers.
Autocomplete past commands
I use the following terminal setup:
- iTerm2 ā Terminal
- Oh-my-zsh and Zsh (replacement for bash) ā Setup guide here
- Starship ā Customize terminal prompt (not needed for this but nice to know)
Once you set up oh-my-zsh, you can add these āpluginsā to your .zshrc
file
# in ~/.zshrc
plugins=(
git
zsh-autosuggestions <--- we'll talk about this one now
zsh-syntax-highlighting
)
With zsh-autosuggestions, every command you type will start autocompleting it.
See the demo below.
All I need to do is hit the right arrow on my keyboard and it will populate.
Aliases
Above, we saw I added this to .zshrc
# in ~/.zshrc
plugins=(
git <--- we'll talk about this one now
zsh-autosuggestions
zsh-syntax-highlighting
)
The git plugin adds aliases for git commands. A few that I use are:
- ga => git add
- gc => git commit
- gd => git diff
- gs => git status
- gps => git push
- gpl => git pull
This saves me at least a minute or two per day, which adds up over a year.
Another thing I do is add custom aliases in `.zshrc`
Here are two examples
# in ~/.zshrc
alias addalias='code ~/.zshrc' <-- open up zshrc file to edit it
alias reload='source ~/.zshrc' <-- reload zshrc file to apply changes
Numbered shortcuts for git files
Adding SCM Breeze allows you to easily work with your files in Git.
These numbered shortcuts are what SCM Breeze gets you:
You can refer to your files like git add 2-3
now or git reset 1
See the example below:
(2) š„ļø Coding
Below are the biggest areas for optimizing your time in your code editor
- Tracing code down or up a stack ā Assume you have a method call youāre looking at. You want to see what the code is inside that method. Donāt globally cmd+f that function name searching for the definition!
- Do this: Have a keyboard shortcut for tracing a variable, method, class, etc.
- VSCode shortcut:
F12
. - Jetbrains IDE shortcut:
cmd+b
- Navigating between locations ā Often youāre working across 2ā3 files, working in the same place in each file and clicking the nav at the top to find which of the 15 files youāre working with. Or youāre working in a large file and scrolling back and forth. Thereās a better way though.
- Do this: Have a keyboard shortcut for going backward and forward in your ālocation history.ā It brings you backward and forward through all the places you edited, across files, so you can easily swap between files and locations.
- VSCode shortcut:
ctrl + -
andctrl + shift + -
- Jetbrains IDE shortcut:
cmd + option + ā¬ ļø
andcmd + option + ā”ļø
- Typing ā Using Github Copilot has saved me days of time already since starting to use it a few months ago. Almost every single line of code you write can get autocompleted for you, including tests. Itās mindblowing š¤Æ how smart it is.
(3) š Save learnings
Everything I learn and want to store for later I save in Notion.
Tiago Forte popularized this concept as ābuilding a second brain.ā
One key takeaway is to store your learnings where you will use them, not where you learned them.
Hereās a screenshot of 2 of my Notion folders for notes:
Each topic is a collection of my learnings from many different articles, videos, books, etc. This helps me find them in the future much easier.
In the future, I plan to more publicly share the content of these, but a lot of my articles are curated versions of what is in my notes.
(4) ā Offloading ideas and tasks
Your brain should be used for creativity, problem-solving, and coming up with ideas ā not storing them.
I use a combination of Todoist and Slack āsave for laterā reminders to store any idea or task, so I can immediately get it out of my brain.
Before I started doing this, my brain was constantly āthrashing.ā Iād swap between tasks in my head trying to remember them and take 10x longer to actually get it done.
This is how Iāve organized my Todoist, but you should do whatever works best for you.
Note: One nice feature I like is that you can add websites as tasks, so if you come across a video or article you want to view later, you can add it as a to-do in one click.
Easter eggš„if you can notice my todo item to put up shelves for my cat to climb š
The key takeaway here is that it doesnāt matter what tool you use. Make sure you can let your brain focus on solving problems, not remembering everything.
(5) š Communicating through visuals
Here are a few daily use cases where you could use visuals to better communicate:
- Documenting a pull request
- Sending a Slack message explaining a change you want to make to a PM
- Getting approval or sign-off on screenshots for a new flow you built
CleanShot (non-affiliate link option) has saved me an immense amount of time here.
It replaces the screenshot tool on your Mac and gives youā¦
- A quick and easy way to apply a ton of visual edits to a screenshot you just took, and drop it anywhere
- An all-in-one gif + screen recording tool too. Itās how I created the other visuals in this post.
- Plenty more features (like scrolling capture, blurring parts of an image, etc.). If youāre interested, Iād recommend checking their demo video.
Below is a slightly contrived example, but annotating my pull requests with screenshots is something this lets me do a lot, which results in faster approvals:
Another common case is making quick screen recordings for presentations or sending a Slack message to my designer or PM getting sign-off on a feature behavior.
(6) š Signing into things
Password managers are a game changer for 2 reasons:
- Convenience ā Never type emails or passwords again. It will do it for you.
- Security ā It will create complex and unique passwords across every site for you.
Hereās how it looks when you sign in to sites using 1Password:
(7) šŖ Window management
As software engineers, weāre constantly managing our browser window, terminal, editor, and messaging app.
For a while, I spent so much time manually resizing windows until I started using a window management tool.
I use Rectangle. Itās free and the pro version is only $10 for lifetime access.
It lets me quickly put 1 window on the left side, 1 window on the right, full screen another window, etc. It saves me a ton of time.
š Closing thought
Incorporating all of these has been a 6-year process for me. I need to slowly incorporate new tools otherwise Iāll get overwhelmed.
My intent with this post is not to make anyone feel like theyāre doing something wrong if theyāre not using these tools.
Itās just to share what has worked well for me and something for you to try if youāre interested.
You donāt need to use the same tools I use. Use what works for you.
Feel free to share in the comments what you use thatās most helpful š
If you liked this, you may also like my weekly newsletter here (21,000+ subscribers): https://careercutler.substack.com/