News for hackers. Stuff that matters.
Re:Is naming things really that hard? by lloeki on Saturday March 04, 2017 @08:37AM (#13790828)
> I have found that when I start reaching for long variable names it's because there is a design problem.

I've come across that rule (Gerrand's rule?) which sums up my personal experience pretty well:

> The greater the distance between a name's declaration and its uses, the longer the name should be.

[0]: https://talks.golang.org/2014/names.slide#5

Re:Is naming things really that hard? by marcosdumay on Saturday March 04, 2017 @09:02AM (#13790901)
I do really like that rule that states that name_length is proportional to log(scope_size).