What's your programming style?
i.e., describe how you format your code. Do you comment a lot, not enough, indent using two spaces or the tab key, put curly braces on their own line, etc.
When I program, I kind of mix and match...I'll put curly braces on their own line, for example, except when I'm getting impatient and I just stack all the statements inside the condition/loop/whatever on one line and surround them with the braces on the same line. Also makes it look neater IMO when you have multiple statements inside both parts of an if/else construction. For example,
i.e., describe how you format your code. Do you comment a lot, not enough, indent using two spaces or the tab key, put curly braces on their own line, etc.
When I program, I kind of mix and match...I'll put curly braces on their own line, for example, except when I'm getting impatient and I just stack all the statements inside the condition/loop/whatever on one line and surround them with the braces on the same line. Also makes it look neater IMO when you have multiple statements inside both parts of an if/else construction. For example,
- Code:
if (this)
{
Do this
Do that
}
if (that) {Do this; do that;}
else {Do something; do another thing;}