Indent Style - Compact Control Readability Style

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:

    Take pains ... to write a neat round, plain hand, and you will find it a great convenience through life to write a small and compact hand as well as a fair and legible one.
    Thomas Jefferson (1743–1826)

    In Vietnam, some of us lost control of our lives. I want my life back. I almost feel like I’ve been missing in action for twenty-two years.
    Wanda Sparks, U.S. nurse. As quoted in the New York Times Magazine, p. 72 (November 7, 1993)

    Everything ponderous, viscous, and solemnly clumsy, all long- winded and boring types of style are developed in profuse variety among Germans—forgive me the fact that even Goethe’s prose, in its mixture of stiffness and elegance, is no exception, being a reflection of the “good old time” to which it belongs, and a reflection of German taste at a time when there still was a “German taste”Ma rococo taste in moribus et artibus.
    Friedrich Nietzsche (1844–1900)