Re:Annoyances of API Design
by rimantas on Thursday January 28, 2016 @04:32PM
(#10991536)
It is already mentioned: you never have to type those by hand, there is autocomplete with placeholders.
[ Parent
| on HN ]
But you do have do have to read them multiple times, and while while a descriptive name is good, there is a point where you are taking things too far and causing more problems than you are solving.
If I'm reading a variable name and by the end I've forgotten the first half of it's name, the long descriptive name isn't helping me nearly as much as the author might think.
Really, the variable name has a context, and I want to evaluate it within that context. That is, within the function as named, or the class and method, what does this variable name mean.