Everyone is very very smart and yet they fail to be technological leaders. Hmmmmmmmm. The Peter Principle maybe; In such a huge organization there is a spot for everyone to be incompetent in no matter how smart you are.
if (x == 456)
{ ...;
}
this is bad code and no amount of commenting is going to fix it. It begs 2 questions; What is x and why 465? I would recode it as something like this that makes the purpose clear enough that no comments are needed:
Everyone is very very smart and yet they fail to be technological leaders. Hmmmmmmmm. The Peter Principle maybe; In such a huge organization there is a spot for everyone to be incompetent in no matter how smart you are.
if (x == 456)
...;
...;
{
}
this is bad code and no amount of commenting is going to fix it. It begs 2 questions; What is x and why 465? I would recode it as something like this that makes the purpose clear enough that no comments are needed:
const int screenWidth = 456;
if(xCoordinate == screenWidth)
{
}
this way I type more code but less comments.