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:

    What compact mean you to have with us?
    Will you be pricked in number of our friends,
    Or shall we on, and not depend on you?
    William Shakespeare (1564–1616)

    There is one thing you and I as parents cannot do, not do we want to do if we really think about it, and that’s control our children’s will—that spirit that lets them be themselves apart from you and me. They are not ours to possess, control, manipulate, or even to make mind.
    Barbara Coloroso (20th century)

    His style is eminently colloquial, and no wonder it is strange to meet with in a book. It is not literary or classical; it has not the music of poetry, nor the pomp of philosophy, but the rhythms and cadences of conversation endlessly repeated.
    Henry David Thoreau (1817–1862)