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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Looking for a talk on naming things

4 点作者 ArloL将近 10 年前
I remember seeing a talk by a man online that covered naming things. One of the points he made was that prefixing a method with get for accessing a property is actually weird. I don't remember the exact arguments he made, which is why I'm looking for it. An example was that get could mean > to go after, take hold of, and bring (something) for one's own or for another's purposes; fetch which then makes no sense for a property because you're not fetching it in the sense that it's not at the other place after you fetched it. Compare it with getting the milk.

1 comment

gt565k将近 10 年前
I&#x27;d suggest reading the book Clean Code, for some insight on how to write, well clean code ;)<p>Chapter 2 covers naming conventions<p>Also note that conventions are different for different languages.<p>You can also look up the Google style guides for Java, Python, etc...