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)

    Could it not be that just at the moment masculinity has brought us to the brink of nuclear destruction or ecological suicide, women are beginning to rise in response to the Mother’s call to save her planet and create instead the next stage of evolution? Can our revolution mean anything else than the reversion of social and economic control to Her representatives among Womankind, and the resumption of Her worship on the face of the Earth? Do we dare demand less?
    Jane Alpert (b. 1947)

    Oh, never mind the fashion. When one has a style of one’s own, it is always twenty times better.
    Margaret Oliphant (1828–1897)