Ugh I hate when people put curly braces on the same line as actual code. They should always be on their own line!
I want a very clear visual definition between blocks of code. The "wasted" space serves a purpose.
This:
Code:
function()
{
for(int i=0;i<5;i++)
{
somecode();
if(condition)
{
dosomething();
}
}
}
is cleaner than this:
Code:
function() {
for(int i=0;i<5;i++) {
somecode();
if(condition){
dosomething();
}
}
}
There is also less chance of accidentally deleting or moving a brace if modifying code.
Normally if I find myself going more than like 5-6 levels deep into nested statements, I start to look into if I can do better OOP to simplify it.
What is crazy is I wrote a forum software years back... before I even knew what OOP is, and before I learned the importance of indenting code. What a maintenance nightmare lol. It worked great though! But good luck maintaining it. There's actually not all that many decent free php forum scripts out there, I'd have to look at picking up that project again, but I think it would be easier to just do a rewrite.