On Fri, 4 Jan 2002, Geir Magnusson Jr. wrote:

| My question is what are the consequences to forcing me to do #2 when #1 is
| perfectly acceptable throughout the professional world?

That syntax is so bleedin' ugly that I would suspect you were a novice not
knowing how to code.. ;)

PROFESSIONALS don't code using really, really ugly standards...

if (something)
{
    Some block;
}

That's so ugly I have a hard time parsing it.

The _only_ way which is worse, is:

if (something)
    {
    Some block;
    }

How is is possible to devise such a _fantastically_ ugly way of writing a
block? I have a hard time trying to _write_ that example there. It is so
utterly incredible. I have to go through it, parsing all such code char by
char, hitting the del key until a "{" appears after the if clause..!

;)

But then, on a serious note, the un-enclosed "block" like this

if (something)
    this;
else
    that;

is a bit dangerous. If you start, kind of mindlessy, to play around with
the code there, you all of a sudden insert a line extra after the that
part, thinking that it will execute only in the else part. Which, of
course, it won't, as it executes all the time..

It's only two little lines extra to include the {}'s, IF you of course
don't use "the really ugly standard", or worse, "the _fantastically_ ugly
standard", mentioned above.

if (something) {
    this;
}
else {
    that;
}

You could, if the this and that parts were very small, do this

if (something) { this; }
else { that; }

Or prettify that as

if (something) { this; }
else           { that; }

but now you're really moving along the edge..

:)



| "On your resume, I see that you were terminated for cause at Sun?"
|
| "Yes, I created too many classes with the opening brace on a separate
| line..."

  "WHAT?  You DARE coming in here, wasting my time, being an
opening-brace-on-separate-line-ASSHOLE? You get the f*** outta here!!"
 ---
  "GUARDS! - Could you please shove this thing into the incer...  Erhm, I
meant; show this ... person ... to the door?"


-- 
Mvh,
Endre


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to