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)

    Knowledge in the form of an informational commodity indispensable to productive power is already, and will continue to be, a major—perhaps the major—stake in the worldwide competition for power. It is conceivable that the nation-states will one day fight for control of information, just as they battled in the past for control over territory, and afterwards for control over access to and exploitation of raw materials and cheap labor.
    Jean François Lyotard (b. 1924)

    Sometimes among our more sophisticated, self-styled intellectuals—and I say self-styled advisedly; the real intellectual I am not sure would ever feel this way—some of them are more concerned with appearance than they are with achievement. They are more concerned with style then they are with mortar, brick and concrete. They are more concerned with trivia and the superficial than they are with the things that have really built America.
    Lyndon Baines Johnson (1908–1973)