Indent Style - Ratliff Style

Ratliff Style

In the book, "Programmers at Work", C. Wayne Ratliff discussed using the style below. The style begins much like 1TBS but then the closing brace lines up with the indentation of the nested block. Ratliff was the original programmer behind the popular dBase-II and dBase-III fourth-generation languages. He indicated that it was originally documented in material from Digital Research Inc.

// In C for (i = 0; i < 10; i++) { if (i % 2 == 0) { doSomething(i); } else { doSomethingElse(i); } }

Read more about this topic:  Indent Style

Famous quotes containing the word style:

    Everything ponderous, viscous, and solemnly clumsy, all long- winded and boring types of style are developed in profuse variety among Germans—forgive me the fact that even Goethe’s prose, in its mixture of stiffness and elegance, is no exception, being a reflection of the “good old time” to which it belongs, and a reflection of German taste at a time when there still was a “German taste”Ma rococo taste in moribus et artibus.
    Friedrich Nietzsche (1844–1900)