Archive
@Archive@lemmy.world
This is a remote user, information on this page may be incomplete. View at Source ↗
- Comment on 10 months later bill revisits his spaghetti code. forgets absolutely everything and refuses to elaborate 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.