3 ms·
A well-placed comment serves as an anchor for the eye when skimming large amounts of code, and provides a sanity check. This is something you would come to appr
by soulofmischief 2y ago
A well-placed comment serves as an anchor for the eye when skimming large amounts of code, and provides a sanity check. This is something you would come to appreciate when working in certain environments.
Does this mean every line of code needs an accompanying comment? No, that is absurd. But what's also absurd is the amount of judgement and unwarranted extrapolation over this particular bit of code, and the general defensiveness which most people in this thread seem to be engaging in. I leave comments like this sometimes if I think it helps increase code clarity.