Skip to content

Comment on Common Species Of Code

Comments

and the cat writes the most correct code according to most programming best practices - except for giving meaningful names to constants, variables and functions

Many years ago I remember coming across some code to page through a table. One of the variables was "STARTREK". There were a few moments of "WTF?!?", until I realized that the variable should have been named "StartRec" (allowing for the fact that language of the day was case insensitive, and only allowed 10 letter names)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.