284
submitted 9 months ago* (last edited 9 months ago) by ShitOnABrick@lemmy.world to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] Archive@lemmy.world 7 points 9 months ago

If a block of code needs a comment, then you can easily move that block into a function and summarise the comment into a name for that function. If you can not easily move a block of code into a function, then you may need to rethink your design.

This isn’t always true of course, but it’s a good mindset to have.

this post was submitted on 27 Nov 2023
284 points (91.5% liked)

Programmer Humor

19197 readers
1276 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS