if (foo)
{
bar
}
rather then what I think is harder to read:if (foo) {
bar
}
and of course, my favorite pet peeve, cram it all in one line:if (foo) { bar }
which is just silly.if ( subname(
first_arg, second_arg, third_arg,
fourth_arg, fifth_arg, sixth_arg
) ) then {
do_if_true( x, y );
}if ( condition ) {
do_if_true( x, y );
} else {
do_if_false( x, y );
}if isn't a subroutine name, it's a flow-of-control operator, and this makes them easy to tell apart.function (parameters)
{
functionality;
}if( foo ) {
...;
}
else {
...;
}
if (foo) {
relatively short suite;
} or if (foo)
{
comparatively longer suite;
}Don't ask why, I just observe this behavior. Like Emerson, I write in the modeline of my editor "Whim".
if (foo)
{
...;
}
function understandFrontPagePost () {
if (getIt) {
if ((witty && original) && (likeTabs || likeSpaces)) {
_root.doApplause();
} else {
_root.leaveSnarkyComment();
};
} else {
if (busy) {
_root.moveOn();
} else {
_root.leaveEvenMoreSnarkyComment();
};
};
};What's the big deal though? Most editors will strip whitespace for you after you've finished coding. Or am I missing something?« Older Cost of Iraq war may exceed $1 trillion dollars.... | Elizabeth Báthory is hot... Newer »
This thread has been archived and is closed to new comments
posted by Aquaman at 2:35 PM on March 18, 2006