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:

    ... in a history of spiritual rupture, a social compact built on fantasy and collective secrets, poetry becomes more necessary than ever: it keeps the underground aquifers flowing; it is the liquid voice that can wear through stone.
    Adrienne Rich (b. 1929)

    The mind is the greatest of all human forces. Control the mind and you control the body.
    Griffin Jay, Randall Faye, and Lew Landers. Armand Tesla (Bela Lugosi)

    If the British prose style is Churchillian, America is the tobacco auctioneer, the barker; Runyon, Lardner, W.W., the traveling salesman who can sell the world the Brooklyn Bridge every day, can put anything over on you and convince you that tomatoes grow at the South Pole.
    Ishmael Reed (b. 1938)