News for hackers. Stuff that matters.
Re:Why we need a book about naming by lloeki on Thursday February 13, 2020 @08:59AM (#22317744)
> I've adopted what I call the square rule (I've never heard it called anything else): The length of the name is the inverse of the square of the extent, and the frequency of its use.

See Gerrand’s rule of thumb

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

https://talks.golang.org/2014/names.slide#4

There are no comments on this comment yet.