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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The Best Code Documentation ‘Tool’ Ever Made

8 点作者 martinnormark将近 11 年前

2 条评论

ASneakyFox将近 11 年前
The method comments are where you explain the expected&#x2F;accepted inputs and outputs. Its not for outlining design decisions. You also don&#x27;t need to explain how the method works. It&#x27;s a black box.<p>Your ide can be configured to show warnings if your comments don&#x27;t match your parameter list. Though generally you don&#x27;t change the external api of your code once you&#x27;ve written it. Or else you then have to update all the methods that call it.
thegreenroom将近 11 年前
so your using function names instead of comments?
评论 #7969502 未加载