DEV Community

Valentin Baca
Valentin Baca

Posted on

2 1

What mnemonic devices do you use in programming?

I use a few "cute" mnemonics when there are some things I just can't remember and I'm curious as to what ones other people use.

For example:

For grep, I usually can't remember if the pattern comes first or the file, so I think of my mother-in-law who cross stitches and the "pattern files" she uses: grep <pattern> <file>

For find, similarly, I think of "location flags" planted in the world:
find <location> <flags>

Of course, tldr is the real hero here.

For markdown links, I usually can't remember if it's [text](link) or (text)[link], but b comes before p, so brackets come before parenthesis.

Share yours!

P.S. The worst "anti-mnemonic" is how in Vim gg goes to the beginning of the file, but in Starcraft, you always say "gg" at the END of the game :P

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs