Comment on 10 months later bill revisits his spaghetti code. forgets absolutely everything and refuses to elaborate

<- View Parent
Archive@lemmy.world ⁨11⁩ ⁨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.

source
Sort:hotnewtop