I'm a bit confused. I'm not advocating leaving out curly braces, but rather implementing code as:
if (isTrue) { DoThis(); } else { DoThat(); } I haven't left anything out(accept comments), it's still neat and ordered, it's just not hugely drawn out with massive whitespace(not too mention a truck-load of enter keystrokes). Maybe it's all a personal thing. My reason for asking was because I saw the mention of McConnell's book, and figured I would take a look at it for a reasoning as to why the above method is better than below, and was dissapointed to not find the reasoning in there. if (isTrue) { DoThis(); } else { DoThat(); } -----Original Message----- From: Cromwell, Ryan [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:39 AM To: Jarrod Moore; [EMAIL PROTECTED] Subject: RE: [Nant-users] Off-Topic: Coding Conventions & Code Complete by McConnell Blah - I used to be of the "compactness" mindset as well. Then I remembered something my dad would always bombard me with when I was in math class as a kid. "Write everything out!" I used to think he was just old, but then I got my report card and no longer had any ammo against his request. I am now of the mindset - take your time, make it neat, and line everything up in neat little columns and rows. You'll save yourself from the regret of "I swear I carried the one?".
<<winmail.dat>>