Quote:
Originally Posted by Chris27
As a CS student at CMU, I've always been told that
Code:
if(isSomeCondition == true) { ... }
is horrible style, and this really should be written as
Code:
if(isSomeCondition) { ... }
|
I'm sooooo sorry to drag this thread off topic.
Anyway, coding style is vastly open to many opinions, and you'll find that the "preferred" method changes about as often as the direction of the wind.
The reason I quoted this is because the CMU-defined "horrible style" is required by my current employer. "if (isSomeCondition)" is against the coding standard where I work (but I prefer to do it that way in my own software outside of work).
I guess my point is that anything anyone tells you about software, take it with a grain of salt. One man's trash is another man's treasure, and that applies to software as well.