r/ProgrammerHumor • • Sep 15 '26

Meme iDontCommentMyCodeIfYouDontUnderstandItThatsOkayNeitherDoI

Post image
832 Upvotes

188 comments sorted by

View all comments

60

u/everypowerranger Sep 15 '26

I'm not writing comments for you, I'm writing them for me.

11

u/zeindigofire Sep 15 '26

Came here to say this. Soooo many times I've read my own code a week later and been like "why did I do it like this?!?" and half the time afterwards I'm like "oh yea, because of that"

10

u/Dabbelju Sep 15 '26

I have a hobby project with a code base that is 12+ years old. No intentions to make it open source, all comments are only for myself. The architecture is pretty solid, which means that there are parts that I haven't visited in years.

Code comments like "this code looks stupid, but it is the way it because of X and Y. Before a change, make sure to understand Z" saved me a couple of times and helped me remember what I did years ago.

I also like writing documentation comments on interfaces as if somebody else would use my API. Helps me organize my thoughts.

18

u/d_k97 Sep 15 '26

I'm not writing comments for me, I'm writing comments for AI

3

u/ResponsibleWin1765 Sep 15 '26

I write a comment whenever I need to look up why I did something.

1

u/joonty Sep 15 '26

Yeah, specifically: me in the future