1215
Comenting code (lemmy.ml)
submitted 10 months ago by Vordimous@lemmy.ml to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] zeekaran@sopuli.xyz -1 points 10 months ago

Unless you're writing something in the open source world, rarely does any code need comments at all.

[-] firelizzard@programming.dev 5 points 10 months ago

That’s a hot take. If you want your code to be maintainable at all, it needs comments. If you’re part of a team, write comments for them. If someone else may take over your project after you move on, leave comments for them. And have you ever tried to read uncommented code you wrote a year ago? Leave comments for yourself.

this post was submitted on 28 Sep 2024
1215 points (99.1% liked)

Programmer Humor

37630 readers
35 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS