Linked by MOS6510 on Wed 17th Apr 2013 21:20 UTC
General Development "You often hear about how important it is to write 'readable code'. Developers have pretty strong opinions about what makes code more readable. The more senior the developer, the stronger the opinion. But, have you ever stopped to think about what really makes code readable?"
Permalink for comment 559015
To read all comments associated with this story, please click here.
Comment by lucas_maximus
by lucas_maximus on Thu 18th Apr 2013 08:03 UTC
lucas_maximus
Member since:
2009-08-18

To them, a long named variable isn’t descriptive, it’s deceptive, because it is hiding the fact that NumberOfCoins represents an integer value with its long name and personification of the variable, as something more than just an integer. They’d rather see the variable named X or Number, because its confusing enough to remember what an integer is.


Sorry if someone has a problem understanding what a whole number is, they shouldn't be programming.

Reply Score: 2