Phoenix
Phoenix@programming.dev
Joined
0 posts • 26 comments
Commenting.
I suck at it documentation. I always forget to do it, and then I forget what the code actually does, later. Then I spend a few hours analysing my own dogshit code before scrapping the whole thing.
If you want a pretty cool example, Le morte d’Arthur was written in prison.
If I find myself repeating more than twice, I just ask “Can this be a function”. If yes, I move it there. If not, I just leave it as it is.
Life’s too short to spend all day rewriting your code.