Live data from Hacker News

Divine By Zero

thedailywtf.com

1–10 of 26 posts

Re: Divine By Zero

#3
Oh man, this gave me a flashback to 4 years spent working for a large newspaper company trying to keep the affiliate papers' "developers" in check. Needless to say I don't miss that job at all.

After spending a couple years specializing with Drupal I'd almost forgotten how ridiculous it can get out in the trenches.

Re: Divine By Zero

#4
Don't mean to be a buzzkill here, but I don't think anyone with an ounce of a brain will find this funny, which I believe was the original intent.

Re: Divine By Zero

#5
post #4

Don't mean to be a buzzkill here, but I don't think anyone with an ounce of a brain will find this funny, which I believe was the original intent.

Daily WTF is all about cringe-worthy programming stories. If you find them funny, so be it... But they're almost all cringe-worthy.

Re: Divine By Zero

#7
I was confused about the "php" == 0, until I found http://php.net/manual/en/types.comparisons.php. So "php" == 0 is true and "php" == true is true, but 0 == true is false. Yikes! It seems like comparisons in PHP are as bad as they are in JS.

I have a hard time believing this is real. Does WTF do any verification?

Re: Divine By Zero

#8
post #6

Is there an opposite website to The Daily WTF - a collection of short, elegant and clever code?

http://rosettacode.org is a wiki with concise algorithms/solutions/snippets in as many languages as you can think of. The algorithms listed range from mundane to clever to anywhere in between. If you haven't already been there it's definitely worth a look.
Post reply on HN