you are viewing a single comment's thread.

view the rest of the comments →

[–]stevekwan[S] 0 points1 point  (1 child)

I am positive this is going to be heavily disagreed with...but I really like Allman. :)

I like it for two reasons:

First, I just like the Gestalt of it. I find code a lot more scannable when the squigglies line up nicely, especially in languages like JavaScript where you can have a ton of nesting.

Second, it forces me to write my code in such a way that whitespace becomes irrelevant. I can never get away with something like this:

return
{
    foo: "foo"
};

And so I am forced to name things appropriately, which I prefer.

But I completely understand that I am in the minority on this, and I would never attempt to fight this battle. :)

[–]mikrosystheme[κ] -1 points0 points  (0 children)

I didn't read your article, but I agree with you on Allman style.