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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: How do I get into the habit of writing comments/docstrings?

3 点作者 nihilazo超过 5 年前
Hello HN, I have a real issue with always forgetting to write proper comments and docstrings in my code, especially on personal projects, and then coming back to them and thinking &quot;what did I mean when I wrote that?&quot;<p>Does anybody have any tips for getting into the habit of writing good comments?

1 comment

PaulHoule超过 5 年前
For docstrings I use pylint to force me to write them.