Coding style & structure
I was reading Ken Arnolds "Style is Substance" essay this morning (as part of Joel Spolskys book "The Best Software Writing I") and can't resist to add my 2c worth (plus I won't tell you were I was sitting when reading the essay :-)
Coding Style doesn't matter. It doesn't matter where you put your curly braces (as long as you're doing it in a consistent way).
What does matter is
- that your code clearly expresses your intent
- doesn't violate the DRY principle
It's just easier to debate white-space & curly braces. Everyone can do that. But not everyone can write clear code. Spend your energy on improving your coding skills.
It took me years to come to this conclusion. Don't make the same mistakes I made.
And, BTW, of course, as long as you're working in my team, you are supposed to put your curly braces where I say they belong :-)