3 ms·
Naming things correctly and consistently is at least 50% of good coding, and at 90% of programmers fail at it.
by ConceptJunkie 8y ago
Naming things correctly and consistently is at least 50% of good coding, and at 90% of programmers fail at it.
- krylon 8y agoWell, you know what they say: There are two hard problems in programming, cache invalidation, naming things, and off-by-one errors[1]. ;-) But there still is a difference between trying to come up with good names and failing on the one hand, and naming a variable "tmp" to indicate that it is a local variable, because I totally cannot see that when looking at the code... [1] I do have to admit that I totally love foreach-loops, when I was still coding in C, I ran into / caused my fair share of off-by-one errors, they were nightmares to figure out.