3 ms·
The point is that writing comments isn't a substitute for writing clear code. I have seen way too much code that someone puked up without thinking about readabi
by Ma8ee 11y ago
The point is that writing comments isn't a substitute for writing clear code. I have seen way too much code that someone puked up without thinking about readability, and then tried to save it by sprinkling it with comments.
So the first thought when writing code that isn't obvious should not be to comment it, but to figure out if there is a way to write it clearer.
But of course, sometimes we need to write code that isn't obvious, and then a few well thought through comments will save the day.