4 ms·
Bad names make you open the box
- ogennadi 5y ago> That’s the power of good names. It allows you to take a bunch of complexity [36 lines of code] and pacakge it up into a dense little box [a method name]. > I’m the type of person who likes to sit for a few minutes and brainstorm the right name for something... On the other hand, I find that many other people don’t even want to invest a few seconds in this.
- aliasEli 5y agoWhat I found a bit disappointing in this article is that it never mentions (structured) comments. Frequently, it is not feasible to find a simple name that describes a function. Many languages have some convention for documenting functions/classes. A good IDE can show you this documentation without have to jump to its implementation.