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:
“What compact mean you to have with us?
Will you be pricked in number of our friends,
Or shall we on, and not depend on you?”
—William Shakespeare (15641616)
“The human mind is indeed a cave swarming with strange forms of life, most of them unconscious and unilluminated. Unless we can understand something as to how the motives that issue from this obscurity are generated, we can hardly hope to foresee or control them.”
—Charles Horton Cooley (18641929)
“Sometimes among our more sophisticated, self-styled intellectualsand I say self-styled advisedly; the real intellectual I am not sure would ever feel this waysome of them are more concerned with appearance than they are with achievement. They are more concerned with style then they are with mortar, brick and concrete. They are more concerned with trivia and the superficial than they are with the things that have really built America.”
—Lyndon Baines Johnson (19081973)