Use long flags when scripting

I peruse a fair amount of dotfile repos, and keep seeing people use short flags inside aliases and little command line tools. Short flags are a command line shortcut, and they do belong there, but if you're not writing the command in a prompt, do yourself (and anyone else that may someday be reading your code) a favor and be more verbose, because this:

curl --silent \
| grep --extended-regexp --only-matching '[0-9\.]+'

is a lot easier for a human to understand than this:

curl -s | grep -Eo '[0-9\.]+'

Share your comments and opinions on Twitter or Hacker News.

News Films

Our little film studio focuses on telling developer-centric stories that need to be seen.

Beyond Code: Season 3 / GopherCon 2015

0:00 / 0:00