I wish I could be bothered to actually do it though
I wish I could be bothered to actually do it though
Every time you think you need a TODO comment, make a note instead, or also.
Consider Kent’s Beck’s recommendation to write down every decision you make.
Some other views
https://shannoncrabill.com/blog/taking-notes-as-a-developer/
https://blogs.oracle.com/javamagazine/post/take-notes-as-you...
However I do at least partially do this. Whenever I use SO, I put a link to the answer in a comment next to the code that implemented it. Whenever a ticket or API doc requires doing weird stuff, I put a link to that too. Whenever I make decisions that might be slightly weird, I put a couple of paragraphs in the git commit.
Not the same, but still better than nothing I guess
Just like any habit, you have to start doing it, build up, and make it so you can't not do it. It's not about discipline, it's about routine.