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

3 points by nihilazo ↗ HN
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

[ 5.6 ms ] story [ 13.8 ms ] thread
For docstrings I use pylint to force me to write them.