On 1/8/02 8:53 AM, "Endre St�lsvik" <[EMAIL PROTECTED]> wrote:
> 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...
No, they consult the coding manual from the technology vendor.
:D
>
> 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..!
>
> ;)
>
I'm glad that you put your own health and well-being on the line, assuming
the risks for your compatriots, by actually typing if blocks different from
your usual. Since you did it in the context of an Apache public discussion,
you may apply for funding from the ASF for counseling and therapy, but
remember the out of network co-pay.
> But then, on a serious note, the un-enclosed "block" like this
>
> if (something)
> this;
> else
> that;
>
> is a bit dangerous.
I think it can be very dangerous, especially in a multi-programmer
environment. (Seriously...)
> 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;
> }
Foul! Heathen! Gaak!
> You could, if the this and that parts were very small, do this
>
> if (something) { this; }
> else { that; }
Ug! Please stop! I beg you.
> Or prettify that as
>
> if (something) { this; }
> else { that; }
Hey! You stole my code :)
> 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?"
>
LOL
--
Geir Magnusson Jr. [EMAIL PROTECTED]
System and Software Consulting
"Whoever would overthrow the liberty of a nation must begin by subduing the
freeness of speech." - Benjamin Franklin
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>