TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Bad names make you open the box

2 点作者 ogennadi将近 4 年前

2 条评论

aliasEli将近 4 年前
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.
ogennadi将近 4 年前
&gt; 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].<p>&gt; 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.