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 559028
To read all comments associated with this story, please click here.
RE: Comment by lucas_maximus
by Soulbender on Thu 18th Apr 2013 11:19 UTC in reply to "Comment by lucas_maximus"
Soulbender
Member since:
2005-08-18

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


Seriously, who *doesn't* know what a whole number is? Other than Tarzan?
And how would NumberOfCoins hide the fact that it's an integer value? The word Number is even there.

They’d rather see the variable named X or Number

Oh I see.
Hey, I have an idea; why not use int1, int2, int3 ... intXXXXX? That way there's no "confusion" regarding the type of the variable and obviously your code would be much more readable...

Reply Parent Score: 3