Re:Applying the Gestalt Principles to Code
by fouc on Sunday May 05, 2019 @08:41AM
(#19832504)
The consistency/types help a lot, but I would rather read 'destination' instead of 'dst', 'value' instead of 'v' etc in methods or blocks that are more than 2-3 lines. I don't want to have to guess or think about what the variable is supposed to be about.
[ Parent
| on HN ]
Re:Applying the Gestalt Principles to Code
by seanmcdirmid on Sunday May 05, 2019 @11:26AM
(#19833256)
I actually feel like this would hinder readability, since we should be trying to read it like code rather than English. Destination is just as vague to me as dst, ditto for value and v, and I don’t have to move my eyes as much horizontally to read a line of code, not to mention that more verbose makes would sacrifice readability of the algorithmic structure for more context that quickly becomes redundant.