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:
“... in a history of spiritual rupture, a social compact built on fantasy and collective secrets, poetry becomes more necessary than ever: it keeps the underground aquifers flowing; it is the liquid voice that can wear through stone.”
—Adrienne Rich (b. 1929)
“I have not ceased being fearful, but I have ceased to let fear control me. I have accepted fear as a part of life, specifically the fear of change, the fear of the unknown, and I have gone ahead despite the pounding in the heart that says: turn back, turn back, youll die if you venture too far.”
—Erica Jong, U.S. author. In an essay in The Writer on Her Work, ch. 13 (1980)
“The most durable thing in writing is style, and style is the most valuable investment a writer can make with his time. It pays off slowly, your agent will sneer at it, your publisher will misunderstand it, and it will take people you have never heard of to convince them by slow degrees that the writer who puts his individual mark on the way he writes will always pay off.”
—Raymond Chandler (18881959)