Compact Control Readability Style
This style makes it easy to skim the left edge of the code for control statements (whereas styles like 1TBS make statements such as "else" harder to see because they are after an end bracket on the same line). However it keeps the code more compact than styles like the Allman style, by putting opening brackets at the end of lines (as opposed to on their own lines).
// In JavaScript if (x == y) { doSomethingA; doSomethingB; } else { doSomethingC; doSomethingD; }Read more about this topic: Indent Style
Famous quotes containing the words compact, control and/or style:
“The worst enemy of truth and freedom in our society is the compact majority. Yes, the damned, compact, liberal majority.”
—Henrik Ibsen (18281906)
“The mind is the greatest of all human forces. Control the mind and you control the body.”
—Griffin Jay, Randall Faye, and Lew Landers. Armand Tesla (Bela Lugosi)
“As we approached the log house,... the projecting ends of the logs lapping over each other irregularly several feet at the corners gave it a very rich and picturesque look, far removed from the meanness of weather-boards. It was a very spacious, low building, about eighty feet long, with many large apartments ... a style of architecture not described by Vitruvius, I suspect, though possibly hinted at in the biography of Orpheus.”
—Henry David Thoreau (18171862)