Hacker News new | past | comments | ask | show | jobs | submit login
Bad names make you open the box (greaterwrong.com)
2 points by ogennadi on June 9, 2021 | hide | past | favorite | 2 comments



What 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.


> 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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: