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)

    Only one thing is certain: if pot is legalized, it won’t be for our benefit but for the authorities’. To have it legalized will also be to lose control of it.
    Germaine Greer (b. 1939)

    Carlyle must undoubtedly plead guilty to the charge of mannerism. He not only has his vein, but his peculiar manner of working it. He has a style which can be imitated, and sometimes is an imitator of himself.
    Henry David Thoreau (1817–1862)