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 worst enemy of truth and freedom in our society is the compact majority. Yes, the damned, compact, liberal majority.
    Henrik Ibsen (1828–1906)

    I am the center of the world, but the control panel seems to be somewhere else.
    Mason Cooley (b. 1927)

    I am so tired of taking to others
    translating my life for the deaf, the blind,
    the “I really want to know what your life is like without giving up any of my privileges
    to live it” white women
    the “I want to live my white life with Third World women’s style and keep my skin
    class privileges” dykes
    Lorraine Bethel, African American lesbian feminist poet. “What Chou Mean We, White Girl?” Lines 49-54 (1979)