3 ms·
I do get your point. I read a comment once: "Uncomment this if the site crashes!" And there was an SQL query commented just below. While that does make for pr
by hdragomir 16y ago
I do get your point.
I read a comment once: "Uncomment this if the site crashes!"
And there was an SQL query commented just below.
While that does make for pretty bad code, I guess you need to take circumstances into account. Stuff like "did they have time or budget to fix the bug the right way?" "Is this piece of code meant to run when testing the app locally so it doesn't send emails?" And all that jazz.
But, as you pointed out, an explanatory comment does wonders and conveys the right context for the commented code -- which was my original problem.
Thank you for taking the time to reply, Chris.