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)

    Every expansion of government in business means that government in order to protect itself from the political consequences of its errors and wrongs is driven irresistibly without peace to greater and greater control of the nation’s press and platform. Free speech does not live many hours after free industry and free commerce die.
    Herbert Hoover (1874–1964)

    The style of an author should be the image of his mind, but the choice and command of language is the fruit of exercise.
    Edward Gibbon (1737–1794)