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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN:What is the best comment in source code you have ever encountered?

10 点作者 geektips将近 12 年前
What is the best comment in source code you have ever encountered?

4 条评论

gjsriv将近 12 年前
Quora has the answer already? Even Stackoverflow-<a href="http://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;184618&#x2F;what-is-the-best-c...</a>
orenbarzilai将近 12 年前
&#x2F;&#x2F;when I wrote it only GOD and I knew what it does. Now only GOD knows.
mb_72将近 12 年前
It was a self-commenting C++ friend function named &quot;ifyouusethisfunctioniwillstrangleyoumyself&quot;, written by our extremely talented team leader. There were a couple of times it was necessary to call this function; the name was there merely to make people think about whether they REALLY needed to call it. Discovering the function itself meant people had already identified some need in their code for it. So - no actual comment, but a very wonderful piece of code that make people think, and prompted many discussions about the correctness of what they were attempting.
o0-0o将近 12 年前
Customer(The.Bastard)<p>Found in GoldMine code in 2000 beta testing. Changed shortly after.<p>EDIT: Not actually a comment, it was a variable named Customer with a property (The.Bastard).