News for hackers. Stuff that matters.
Re:How to name things in programming by SamReidHughes on Monday May 25, 2015 @05:06AM (#9599220)
I try to pick words with different lengths. They're more visually distinguishable.
Re:How to name things in programming by jacquesm on Monday May 25, 2015 @05:20AM (#9599247)
And try to pick words that are lexicographically distant from each other to minimize the chance of single letter typos changing the meaning of the code.
Re:How to name things in programming by JadeNB on Wednesday May 27, 2015 @03:14PM (#9613633)
Of course it's a tiny matter of terminology, but you probably mean Hamming distant, not lexicographically distant. `zaaaaa` is lexicographically farther from `aaaaaa` than is `bbbbbb`, but Hamming closer.