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:

    “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 (1751–1836)

    “Above and beyond paying attention to feelings before and after a separation, never threaten your child with leaving or loss of love in an effort to control her behavior. Children believe their parents’ assertions that “I will send you away,” “I won’t love you any more,” “I’ll go away,” and are terrified with good reason. Fear is a very poor way of disciplining a child, and it can cause severe lifelong anxiety.”
    —Alicia F. Lieberman (20th century)

    “No change in musical style will survive unless it is accompanied by a change in clothing style. Rock is to dress up to.”
    —Frank Zappa (1940–1994)