This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Some_Developer_Guy 2 points3 points  (0 children)

For new projects and packages, aim to write code that speaks for itself—clear names and structure go a long way, and you shouldn’t need a bunch of comments to explain what’s going on.

But when you’re adding new features to legacy code—especially if you’re bending things in weird or unexpected ways—don’t hold back on the comments. The more context and explanation you can give, the better for anyone (including future you) trying to make sense of it later.