Time-Saving Tips for Programming
Tutorials February 21, 2018 2 min read 132 views

Time-Saving Tips for Programming

Practical tips for saving time as a programmer, including note-taking, shortcuts, and automation.

Z

Zach Robichaud

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

DokuWiki logo

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

PHPStorm logo

Here are some tools I use constantly:

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:

  1. Learn and customize keyboard shortcuts
  2. Script repetitive tasks with aliases and automation
  3. 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
Linux & DevOps 2 days ago 3 min read

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.

Comments (0)

Leave a Comment

No comments yet. Be the first to share your thoughts!