On Thu, Nov 19, 2009 at 8:28 AM, Michael Torrie <[email protected]> wrote: > Alex Esplin wrote: >> I can't remember a time when code I've come across with multiple >> statements on a line was usefully readable and maintainable. With the >> size of the codebase at my job, easily readable maintainable code has >> become infinitely more important. > > Not even one-line if statements? > > if (go_up) { y--; } > if (go_up_right) { x++; y--; } > > or for pythonistas: > > if go_up: y -= 1 > if go_up_right: x +=1 ; y -= 1 > > They have their place.
And don't forget for loops! TBH, I occasionally split for loops to multiple lines, but that is the exception, not the rule. David -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list
