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 powers of the federal government ... result from the compact to which the states are parties, [and are] limited by the plain sense and intention of the instrument constituting that compact.”
—James Madison (17511836)
“Teenage boys, goaded by their surging hormones ... run in packs like the primal horde. They have only a brief season of exhilarating liberty between control by their mothers and control by their wives.”
—Camille Paglia (b. 1947)
“I concluded that I was skilled, however poorly, at only one thing: marriage. And so I set about the business of selling myself and two children to some unsuspecting man who might think me a desirable second-hand mate, a man of good means and disposition willing to support another mans children in some semblance of the style to which they were accustomed. My heart was not in the chase, but I was tired and there was no alternative. I could not afford freedom.”
—Barbara Howar (b. 1934)