Time-Saving Tips for Programming
Practical tips for saving time as a programmer, including note-taking, shortcuts, and automation.
Zach Robichaud
Table of Contents
Time-Saving Tips for Programming
Many people say they have code repositories to quickly grab what they need. While that's helpful, it's not always the most efficient approach. Here are some strategies I use daily to save time.
Keep Searchable Notes

Good notes should be:
- Searchable
- Version-controlled
- Easy to use
I use a self-hosted wiki called DokuWiki. It's free, powerful, lightweight, and has plenty of plugins.
Build Your Software Toolbox

Here are some tools I use constantly:
- KRuler - Free on-screen pixel ruler
- Gcolor2 - Easy on-screen color picker
- Shutter - Powerful screenshot tool
- PHPStorm - My IDE of choice
Use Aliases and Scripts
On my current project, we use Jira with feature branches. I spent an hour scripting repetitive tasks. I'm not saving hours at once, but over years, it adds up.
Here are some aliases from my terminal configuration:
alias art="php artisan"
alias codecept="php vendor/bin/codecept"
alias debug="export XDEBUG_CONFIG=\"idekey=PHPSTORM\""
alias rsync="rsync -hrltiSmP"
alias a="git add"
alias s="git status"
alias d="git diff"
alias checkout="git checkout"
alias ..="cd .."
alias ...="cd ../.."
Minimize Hand Travel Time
One of the biggest productivity gains comes from reducing hand travel time—the distance your hands move between the keyboard and mouse.
Priority order for optimization:
- Learn and customize keyboard shortcuts
- Script repetitive tasks with aliases and automation
- Customize colors and fonts for better readability
Reduce Redundant Typing
System-wide text expansion tools let you define shortcuts that expand into longer text. I use AutoKey on Linux. For Windows, try AutoHotkey.
Take Breaks
This is probably my biggest tip. Your mind needs time to relax and subconsciously process what you're working on.
When I've been stuck on a problem for hours, the best thing I can do is step away until the next morning. Often, I solve it within minutes—it's like my brain worked on it overnight.
If you're stuck, either switch to a simpler task or take a break. Your future self will thank you.
How was this article?
Related Posts
Linux 'z' command is a must have terminal tool
The Linux z command completely changes how you move around the terminal. Instead of typing long paths or relying on tab completion, z learns the directories you visit and lets you jump to them using short, partial names. Once you use it, going back to plain cd feels painfully slow.
If Searching for Quotes Breaks Your Software
When entering a single or double quote crashes your application, you likely have a SQL injection vulnerability. Here's what to do about it.
Testing Emails Safely
How to test email functionality without accidentally sending messages to real users.
Comments (0)
No comments yet. Be the first to share your thoughts!