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 Puritans, to keep the remembrance of their unity one with another, and of their peaceful compact with the Indians, named their forest settlement CONCORD.”
—Ralph Waldo Emerson (18031882)
“Playing at make-believe, the young child becomes the all-powerful person he cannot be in reality. In pretending, the child takes control of his otherwise powerless position.”
—Joanne E. Oppenheim (20th century)
“There are neither good nor bad subjects. From the point of view of pure Art, you could almost establish it as an axiom that the subject is irrelevant, style itself being an absolute manner of seeing things.”
—Gustave Flaubert (18211880)