Hacker News new | ask | show | jobs
by Tichy 6195 days ago
"In my opinion, the Allman brace style is easier to read because..." (blablabla)

bottomline: because he is used to them. I feel the K&R style is easier to read because that is what I am used to.

1 comments

Well put. Personally, I get distracted when reading Allman style. When I start scrolling, I start daydreaming about all of the wasted space and how that programmer must have met his/her line quota for the day. Most editors have a brace matching feature that helps.
Yeah while I was reading that article it occurred to me that Allman is a good way to increase LoC count ;-)
You'll also notice that in his example of the Allman style, each code block starts with a comment. In my experience as an Allman formatter, I feel pretty much compelled to comment even the simplest code blocks, just so that it doesn't look stupid, thus increasing the number of lines of code even further.