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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: When is the last time that you heard this red herring?

2 点作者 docmechanic超过 2 年前
"Good software is self-documenting!"

2 条评论

simonblack超过 2 年前
Documentation of software should show <i>WHY</i> the code is what it is, rather than <i>WHAT</i> it is doing.<p>The code itself should show what is happening, but not necessarily why it is happening.<p>If my COBOL taught me anything, it is to always use clear, descriptive variable-names and function-names. Yes it takes more time in typing, but that gets made up in spades in understanding. Especially several months down the track when you&#x27;re maintaining that code.
KeyXiote超过 2 年前
Still draw physical logic maps for c++, may be habitual at this point but commenting&#x2F;documenting has saved me a lot of time by spending fractionally less &quot;extra&quot; time just doing it. Cudos to red herrings and a great Professor in my past. (1)To answer your question directly, more than a decade...