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)
“Magic is the envelopment and coercion of the objective world by the ego; it is a dynamic subjectivism. Religion is the coercion of the ego by gods and spirits who are objectively conceived beings in control of nature and man.”
—Richard Chase (b. 1914)
“On the first days, like a piece of music that one will later be mad about, but that one does not yet distinguish, that which I was to love so much in [Bergottes] style was not yet clear to me. I could not put down the novel that I was reading, but I thought that I was only interested in the subject, as in the first moments of love when one goes every day to see a woman at some gathering, or some pastime, by the amusements to which one believes to be attracted.”
—Marcel Proust (18711922)