Quote:
Originally Posted by MrRoboSteve
For student code, I recommend that every block be enclose in braces as it's consistent and simple to think about.
|
Not just student code - many company coding standards require this as well, including
Java code written for/at Google.
My team intends to use Google's style guide for all our code in the future. Consistently applying rules and formatting will help with integrating and understanding code written by multiple people, and it helps students get used to the idea that they will eventually have to work in an environment where such rules are imposed.
olidem123, it might be a good resource for you too
