News for hackers. Stuff that matters.

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

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 "what did I mean when I wrote that?"

Does anybody have any tips for getting into the habit of writing good comments?

( 1 comment | 3 points | on HN )
Re:Ask HN: How do I get into the habit of writing comments/d... by PaulHoule on Monday February 17, 2020 @06:27PM (#22351925)
For docstrings I use pylint to force me to write them.