2 ms·
> 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 th
by lloeki 7y ago
> 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 https://talks.golang.org/2014/names.slide#4