4 ms·
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?
- PaulHoule 7y agoFor docstrings I use pylint to force me to write them.