Justin James
Jul 6, 2022

--

I like my code to read like it was written by the professor for a Comp Sci 101 course. Well-written, accurate, etc. But extremely "step 1, step 2, take the results of step 2 and examine them..."

I don't even like the ternary operator honestly, or depending on order of operations when added parenthesis can make things super obvious. People who don't use it often have to look up and remember which takes precedence, and where's the win? Are source code bytes so expensive that saving a few produces measurable benefit?

It's all ego. "Look how clever I am, I saved myself five keystrokes." Woo hoo. Imagine if your mechanic found ways to minimize the number of times they turned the ratchet and bragged about it.

J.Ja

--

--

Justin James
Justin James

Written by Justin James

OutSystems MVP & longtime technical writer

No responses yet