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 inability to control our childrens behavior feels the same as not being able to control it in ourselves. And the fact is that primitive behavior in children does unleash primitive behavior in mothers. Thats what frightens mothers most. For young children, even when out of control, do not have the power to destroy their mothers, but mothers who are out of control feel that they may destroy their children.”
—Elaine Heffner (20th century)
“It is not in our drawing-rooms that we should look to judge of the intrinsic worth of any style of dress. The street-car is a truer crucible of its inherent value.”
—Elizabeth Stuart Phelps (18441911)