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:

    The Puritans, to keep the remembrance of their unity one with another, and of their peaceful compact with the Indians, named their forest settlement CONCORD.
    Ralph Waldo Emerson (1803–1882)

    “Have we any control over being born?,” my friend asked in despair. “No, the job is done for us while we’re sleeping, so to speak, and when we wake up everything is all set. We merely appear, like an ornate celebrity wheeled out in a wheelchair.” “I don’t remember,” my friend claimed. “No need to,” I said: “what need have us free-loaders for any special alertness? We’re done for.”
    Marvin Cohen, U.S. author and humorist. The Self-Devoted Friend, New Directions (1967)

    Style is the dress of thoughts; and let them be ever so just, if your style is homely, coarse, and vulgar, they will appear to as much disadvantage, and be as ill received, as your person, though ever so well-proportioned, would if dressed in rags, dirt, and tatters.
    Philip Dormer Stanhope, 4th Earl Chesterfield (1694–1773)