if (something) {
something();
} else {
something_else();
}
vs. if (something)
{
something();
}
else
{
something_else();
}
To me, the first one is chaotic. It's not so bad like that, but throw in a loop (as well as the external function declaration) and it's a complete mess.The second one is orderly. Block separation is very clear, and each brace is matched by an equal.
IMO, if you need to worry about how many lines of code fit on your screen, it's probably time to refactor (or upgrade from a netbook).
I might be crazy though, because I write
int* foo
instead of int *foo
And no one does that. Pointers are a type!