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)
“The poets were not alone in sanctioning myths, for long before the poets the states and the lawmakers had sanctioned them as a useful expedient.... They needed to control the people by superstitious fears, and these cannot be aroused without myths and marvels.”
—Strabo (c. 58 B.C.c. 24 A.D., Greek geographer. Geographia, bk. 1, sct. 2, subsct. 8.
“A man is free to go up as high as he can reach up to; but I, with all my style and pep, cant get a man my equal because a girl is always judged by her mother.”
—Anzia Yezierska (c. 18811970)