2 ms·
> 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 su
by lloeki 10y ago
> 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 https://talks.golang.org/2014/names.slide#5
- marcosdumay 10y agoI do really like that rule that states that name_length is proportional to log(scope_size).