Also called K&R or 1TBS, is where you do this...
if (foo) {
somefunction();
}
As opposed to the evil, ugly, blackspace wasting Allman method, which would suggest you do this:
if (foo)
{
somefunction();
}
However, there are worse. The old emacs style was characterized by this:
if (foo)
{
somefunction();
}
which was sheer evil.
The spacing itself is personal preference, although I recommend real spaces instead of tabs. I use 2, but most people use more.
also, note how the use of pre tags caused my code to appear indented, which makes a longer program (that is properly indented to begin with) easiar to read and understand, and hence to debug. |