Comments are More Important than Code
CowboyRobot writes "I was going through some code from 2002, frustrated at the lack of comments, cursing the moron who put this spaghetti together, only to realize later that I was the moron who had written it.
An essay titled Comments Are More Important Than Code goes through the arguments that seem obvious only in hindsight - that 'self-documenting' code is good but not enough, that we should be able to write code based on good documentation, not the other way around, and that the thing that separates human-written code from computer-generated code is that our stuff is readable to future programmers.
But I go through this argument with my colleagues, who say that using short, descriptive variable names 'should' be enough as long as the code is well-organized.
Who's right?"
And this, my friends, is one of the reasons why offshore outsourcing is doomed. You understand comments are important. For people in India schedule is far more important than comments. So they'll cut&paste shit all over the place and leave it uncommented. If you happen to have to work with it, your hair will turn gray pretty quickly.
Or you could just be smart enough to know what the code does without the comments? tool
cha-ching. money baby... money
Seriously? Get a fucking clue. Get yourself a copy of K&R. Read it. Understand it. Once you think you understand it get yourself a copy of "Enough rope to shoot yourself in the foot" and prove it to yourself by reading it without whining about people using the language the way it is supposed to be used. There is no reason an entire development team should give itself a lobotomy just so a jew junior programmers and interns can understand parts of the codebase they should realisticaly not be touching anyways.
As a fun side project get yourself a microcontroller and write some assembly programs for it so you understand why C works the way it does. Good luck. I hope you make the grade.
Code comments on you!
sigfault. core dumped.