"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.
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...
Member since:
2005-08-18
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.
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...