HACKER Q&A
📣 nihilazo

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?


  👤 PaulHoule Accepted Answer ✓
For docstrings I use pylint to force me to write them.