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)
“Grown-up people do very little and say a great deal.... Toddlers say very little and do a great deal.... With a toddler you cannot explain, you have to show. You cannot send, you have to take. You cannot control with words, you have to use your body.”
—Penelope Leach (20th century)
“All my stories are webs of style and none seems at first blush to contain much kinetic matter.... For me style is matter.”
—Vladimir Nabokov (18991977)