Post #176,047
9/23/04 10:56:58 PM
|
Oddly enough, I got it
Class Meek Inherits Earth
Or something like that, right? :)
"When a true genius appears in the world you may know him by this sign: that all the dunces are in confederacy against him." - Jonathan Swift
[link|http://www.xormad.com:4096/district268|I am from District 268].
|
Post #176,119
9/24/04 10:24:57 AM
9/24/04 11:17:00 AM
|
Throws TablizerException
\nclass Meek extends Earth {\n long life_the_universe_and_everything() {\n return 42;\n }\n Object the_question(long answer) throws BypassException {\n throw new BypassException("Don't Panic!");\n }\n}\n
Edited by ChrisR
Sept. 24, 2004, 11:17:00 AM EDT
|
Post #176,121
9/24/04 10:28:04 AM
|
Wrong
\nclass Meek extends Earth \n{\n long life_the_universe_and_everything() \n {\n return 42;\n }\n Bypass the_question(long answer) \n {\n return new Bypass(answer/0);\n }\n}\n
-drl
|
Post #176,124
9/24/04 10:30:26 AM
|
Mine's shorter by 3 lines. :-)
|
Post #176,125
9/24/04 10:31:01 AM
|
Mine's more readable by 3 columns
-drl
|
Post #176,131
9/24/04 10:39:22 AM
|
Probably need to move this discuss to Religion forum.
Let's just say that I disagree. Your version does not enhance readability because, (a) it just intersperses a bunch of whitespace where none is needed, and (b). the indentation of the block statements tells you everything you need to know (long live Python).
|
Post #176,132
9/24/04 10:44:12 AM
|
) { causes my visual cortex to segfault
-drl
|
Post #176,137
9/24/04 10:49:57 AM
|
Cut off your hand and cast it into the fire
You violate thy [link|http://www.lysator.liu.se/c/ten-commandments.html|Eighth Commandment], wherein it is written: 8 Thou shalt make thy program's purpose and structure clear to thy fellow man by using the One True Brace Style, even if thou likest it not, for thy creativity is better used in solving problems than in creating beautiful new impediments to understanding.These words, alas, have caused some uncertainty among the novices and the converts, who knoweth not the ancient wisdoms. The One True Brace Style referred to is that demonstrated in the writings of the First Prophets, Kernighan and Ritchie. Often and again it is criticized by the ignorant as hard to use, when in truth it is merely somewhat difficult to learn, and thereafter is wonderfully clear and obvious, if perhaps a bit sensitive to mistakes.
While thou might think that thine own ideas of brace style lead to clearer programs, thy successors will not thank thee for it, but rather shall revile thy works and curse thy name, and word of this might get to thy next employer. Many customs in this life persist because they ease friction and promote productivity as a result of universal agreement, and whether they are precisely the optimal choices is much less important. So it is with brace style.
As a lamentable side issue, there has been some unrest from the fanatics of the Pronoun Gestapo over the use of the word ``man'' in this Commandment, for they believe that great efforts and loud shouting devoted to the ritual purification of the language will somehow redound to the benefit of the downtrodden (whose real and grievous woes tendeth to get lost amidst all that thunder and fury). When preaching the gospel to the narrow of mind and short of temper, the word ``creature'' may be substituted as a suitable pseudoBiblical term free of the taint of Political Incorrectness.
|
Post #176,176
9/24/04 11:48:25 AM
|
Wow! :-)
|
Post #176,181
9/24/04 11:59:53 AM
|
In re-reading the ancient texts...
...I see they support DeSitters case at the function level - only the blocks within a function support mine style.
(but don't tell him, or he'll get a big head). :-)
|
Post #176,189
9/24/04 12:28:58 PM
|
Ahh, the good 'ol days...
...when I used to stalk the college computer centre at two in the morning and chant the ten commandments in a very "Pythonesqe" voice.
Seriously.
Powered by the Hammer of the Gods
|
Post #176,198
9/24/04 12:41:43 PM
|
I just bought a Cardinals hat
I *do* have a big head already :)
-drl
|
Post #176,202
9/24/04 12:48:02 PM
|
OT Going to see Cards v Rockies tonight :)
Fireworks game at Coors Field, got 5th row directly behind the plate. My son doesn't know we're going yet, I can't wait to surprise him :)
-- Steve
|
Post #176,215
9/24/04 1:25:53 PM
|
Re: OT Going to see Cards v Rockies tonight :)
My head is a planetoid. I had to go to three different sports shops to find one to go around it. 7 3/4! If you ever want to find me, look for the gravitational lensing!
-drl
|
Post #176,227
9/24/04 2:03:29 PM
|
Religion for you, maybe...
Physical fact for me. I have vertically doubled vision. Putting the braces on separate lines makes code much more readable for me.
HTH. ;-)
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #176,234
9/24/04 2:27:13 PM
|
Just remember:
Whitespace is cheap!...there's enough for everybody! Don't worry about using too much, you won't run out....
jb4 shrub\ufffdbish (Am., from shrub + rubbish, after the derisive name for America's 43 president; 2003) n. 1. a form of nonsensical political doubletalk wherein the speaker attempts to defend the indefensible by lying, obfuscation, or otherwise misstating the facts; GIBBERISH. 2. any of a collection of utterances from America's putative 43rd president. cf. BULLSHIT
|
Post #176,233
9/24/04 2:25:39 PM
|
Ding!
jb4 shrub\ufffdbish (Am., from shrub + rubbish, after the derisive name for America's 43 president; 2003) n. 1. a form of nonsensical political doubletalk wherein the speaker attempts to defend the indefensible by lying, obfuscation, or otherwise misstating the facts; GIBBERISH. 2. any of a collection of utterances from America's putative 43rd president. cf. BULLSHIT
|
Post #176,439
9/25/04 11:40:11 PM
9/25/04 11:44:15 PM
|
Still wrong though - deS is right
Braces should always have their own line.
Your eye is better at lining up vertically and you can spot a missing brace in a heartbeat.
You can prove this using human factors testing btw.
Oh, and uh, this isn't at all funny.
That was lovely cheese.
--Wallace, The Wrong Trousers
|