Comment On Classic WTF: Now That's A Neat Trick

Now That's A Neat Trick was originally published on September 9th, 2006. [expand full text]
« PrevPage 1Next »

Re: Classic WTF: Now That's A Neat Trick

2008-12-25 08:18 • by IByte (unregistered)
Does using four different languages in one statement qualify as "innovative"?

Re: Classic WTF: Now That's A Neat Trick

2008-12-25 08:41 • by configurator (unregistered)
Bien, of course c'est innovativi!

Re: Classic WTF: Now That's A Neat Trick

2008-12-25 14:05 • by JimBob (unregistered)
Holy carp. As I read each line of that sample, I literally was saying in my head, "No... oh crap, no.. no way..."

Re: Classic WTF: Now That's A Neat Trick

2008-12-25 15:17 • by Gerhard
I think this applies:

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.

-Brian Wilson Kernighan

Re: Classic WTF: Now That's A Neat Trick

2008-12-26 08:24 • by Jeff (unregistered)
Never done anything like that myself, I've always done the HTML in the PHP code. I guess that means I'm not worthy.

Still, I've seen stuff like that at work as well, with the explanation of "Well, yeah, I could have just included module X and wrote a single line of code, but wheres the fun in that? It would be very boring code.".

Re: Classic WTF: Now That's A Neat Trick

2008-12-26 12:13 • by Steeldragon
236539 in reply to 236507
The Goggles. They really do nothing. Even when mixed with the Panic Blackout Glasses from The HitchHikers Guide to the Galaxy. My eyes, they're burning...all i can see is 42.42.42.42.42.42.42.42.42.42.42.42............

Re: Classic WTF: Now That's A Neat Trick

2008-12-26 15:10 • by Role Player (unregistered)
"It's like an express train full of things designed to hurt your mind; just when you think that it's finished running you over, another car hits you, grinding yet another valuable part of your soul beneath its wheels." - Darren

Re: Classic WTF: Now That's A Neat Trick

2008-12-26 17:01 • by BillyBob (unregistered)
"2 - The Nod -- Creative, as in, using a single 32-bit integer variable to store two 16-bit integers."

You go to hell! You go to HELL and you DIE!

Whoever thought up this brilliant piece of engineering... and Microsoft, for making this a feature of how your event loop works you need a HUGE kick up the ass!

Re: Classic WTF: Now That's A Neat Trick

2008-12-27 00:25 • by Real-modo (unregistered)
236583 in reply to 236452
Gerhard:
I think this applies:

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.

-Brian Wilson Kernighan
You mean, it applies in reverse in this case? To paraphrase Terry Pratchett, I try to put "clever" together with this code, and I can't get them to overlap at all.

RSS bandwidth

2008-12-27 04:45 • by Kim (unregistered)
Note to RSS subscribers: to save on bandwidth, I'm moving the RSS Feed to FeedBurner. Please let me know if you experience any disruptions.
A RSS feed which only has the first paragraph (and not the entire article) would be a low bandwidth way of letting people know when a new article is out. Some of us reading from mobile phones would appreciate this option.

Re: Classic WTF: Now That's A Neat Trick

2008-12-28 08:44 • by Some dude (unregistered)
who ever writes code like that should be shot.

Re: Classic WTF: Now That's A Neat Trick

2008-12-29 05:04 • by Gerhard
236713 in reply to 236583
I didn't say he pulled it off. He only tried to be clever. Had he gone for simple he might actually become a good programmer.

Re: Classic WTF: Now That's A Neat Trick

2008-12-29 06:37 • by Herman (unregistered)
The golden rule of programming: Debug first, code later.

(ACSI - The 7 character library before ASCII)

Re: Classic WTF: Now That's A Neat Trick

2008-12-29 11:06 • by iToad (unregistered)
I propose the use of a "Goldberg Scale" to rate this type of code. This scale is (of course) named after the great cartoonist Rube Goldberg.

On a Goldberg Scale of 1 to 10, with 1 being boring code, and 10 being 1000 lines of uncommented APL, this code would rate a solid 8. If it was self-modifying, it would rate even higher.

I ROCK!

2009-01-06 08:31 • by A total duche (unregistered)
"Woah dude! My new program only got one file, one query and one output! That's how it's done! Yeah baby!"
« PrevPage 1Next »

Add Comment