4 ms·
Using Golang as an example of naming conventions is questionable - this is a language where single letter variable names are idiomatic. I feel like the author
by boringuser2 3y ago
Using Golang as an example of naming conventions is questionable - this is a language where single letter variable names are idiomatic.
I feel like the author missed the obvious; a name should reduce cognitive load as much as possible. Length is one factor that is relevant to this goal, but not the only factor.
When a name is too long, this is usually a design issue, not a stylistic issue, i.e. writing Swiss Army functions.
Also, takeOwnership is not inferior to acquire, it's just about a wash.
- hinkley 3y agoYou can lead a developer to cognitive theory but you can’t make him think.