Comment What I got taught (Score 0) 1021
In highschool, we got taught to add lots of comments, even when my rebelious uprisings didn't change this. I refused to comment silly lines like a = 25;
And on my first exam I did get degraded because of this. So then I just started adding larger blocks of comments to blocks of code.
When on work experience, I got told by someone in the company that it's best not to comment your code, because once the project is finished, and they let you go.. then need to upgrade their code, I (as the programmer) would be pretty much the only one that could read my code. Meaning I'd always (mostly) have a job, because other programmers would waste their time trying to decode what I wrote.
On one side, this is a nice idea... on the otherside, it's pretty rediculous, seeing as that after a few months I probably won't even remember what I coded in the first place. So now I just tend to add comments on a regular basis, but not on every line.
In college they don't even teach us to use comments... which is odd.. although in this so called CS course we're only using VB.NET... quite sickening.