| « Prev | Page 1 | Next » |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 11:05
•
by
Sebastiaan
(unregistered)
|
|
Not bad, nice and obscure.
captcha: slashbot. What brought me here a long time ago. (Almost) |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 11:17
•
by
Ancient_Hacker
|
|
What's the problem? Fixed-point math has a long and honorable history.
And there are only a few ways to divide-- shifting the divisor up or down until it can be subtracted is perfectly good. Your fancy Crays might use some fancier algorithms, but for a calculator limited by mouse speed- this routine is fast enough. But don't ask me if it's foolproof. Or works correctly for all inputs. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 11:17
•
by
BradC
|
|
"a real, live, rotting codebase"
Something you can smell from a long way off. Nice entry! |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 11:28
•
by
Galelasa
|
|
Nice entry, but...did I miss something? (It is Monday after all...)
Wasn't the point of the contest to write new code that mimicked WTF code? Not just to submit buggy code that was over 10 years in the making? And no, I didn't submit a calculator, so this isn't just sour grapes. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 11:30
•
by
Hit
(unregistered)
|
This is NOT real code. It's all made up. The author just brilliantly made it look that way. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 11:35
•
by
Snuggles
(unregistered)
|
|
I used to sit next to Steve-O.
I can vouch for you right now... that's not the only piece of WTF-code his company has. I submitted a few entries myself! You should have seen their VB nightmare. Whenever I see/hear the words "bContinue" I start to get a sick feeling in my stomach. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 11:38
•
by
T$
(unregistered)
|
|
I think my favorite part is in CalcFunc.cpp:
else { /* Divisor is greater than dividend; shift divisor right until * divisor is less than or equal to dividend * we will fix this at the start of the upcoming while() loop */ } *whew* good thing we're going to fix it later, for a second I didn't think there was anything that could handle this case, haha. Keep 'em coming! |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 11:41
•
by
Galelasa
|
I'm going to go address my obvious caffeine deficiency now... o_O |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 11:48
•
by
Larry Lard
(unregistered)
|
|
The real WTF is that the text "ièce de résistance" is inexplicably in Arial (and with a <font> tag, too!)
|
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 12:11
•
by
PS
(unregistered)
|
|
The real WTF is that the bugs were fixed on Saturday / Sunday.
|
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 12:48
•
by
rilarios
|
you have too much time uin your hands!.. I didn't noticed either |
|
The Real WTF is the contest forums are gone.
Well, they were gone a minute ago |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 12:56
•
by
Oliver Klozoff
|
If you knew anything about my company, you'd know that was no WTF. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 13:03
•
by
KeyJ
(unregistered)
|
|
A "RISC processor that can't divide" is actually much more common than you might think: All ARM Processor Cores up to ARM9 belong to this category -- and these devices power almost every PDA and Smartphone out there, amongst uncountable other embedded systems. Even iPods use them (clocked at a mere 75 MHz) and do all the MP3/AAC decoding on them.
Bottom line: Division is overrated :) |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 13:05
•
by
guest
(unregistered)
|
|
I’ll leave you with Stephen’s answer to a question I asked all finalists: would you replace calc.exe on Windows with your calculator?
It's sad that I'm now sure that I'm not a finalist :( |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 13:09
•
by
Ash
(unregistered)
|
|
Galelasa:
Nice entry, but...did I miss something? (It is Monday after all...) Wasn't the point of the contest to write new code that mimicked WTF code? Not just to submit buggy code that was over 10 years in the making? And no, I didn't submit a calculator, so this isn't just sour grapes. >This is NOT real code. It's all made up. The author just brilliantly made it look that way. I think you meant "The author just brillantly made it look that way." captcha: pirates. argh. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 13:13
•
by
guest
(unregistered)
|
|
This is NOT real code. It's all made up. The author just brilliantly made it look that way.
No, he brilliantly made it look as if he brilliantly made it look that way. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 13:13
•
by
bobday
|
Nice |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 13:22
•
by
o_0
(unregistered)
|
There is no requirement that a WTF must have a typo.... |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 13:29
•
by
Zylon
|
Posting your captcha: -100 Following a pirate reference with "argh": -1000000 (it's "Arrr", all you argh-posting dumbasses) |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 13:31
•
by
GordonB
(unregistered)
|
|
There's one not even mentioned - I just compiled and ran the code and there's no way of getting a decimal point into the number entry box other than to divide two numbers together.
|
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 13:55
•
by
Name
(unregistered)
|
Same here. Hopefully, the non-finalist entries will get some sort of writeup on the front page instead of just a giant linkdump. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 13:56
•
by
Salisbury Steak
(unregistered)
|
|
I second that, I thought my wtfery was tops!
|
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 14:11
•
by
Alex Papadimoulis
|
Don't worry, I have several front-page articles planned for next week that discuss the non-finalists. There were so many incredible submissions. It was very hard to choose! |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 14:15
•
by
Rick
(unregistered)
|
|
This is clearly not a WFT. This code has comments!
|
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 14:15
•
by
Rick
(unregistered)
|
|
Well, this code is also not a WTF. Too bad I can't spell.
|
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 14:47
•
by
Jimmy
(unregistered)
|
What Findeth Thou? |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 15:23
•
by
Carnildo
|
He might have been hoping for ninjas, in which case "argh" is correct. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 16:33
•
by
BlueKnot
(unregistered)
|
|
I liked this one before I even looked at the code... just the screenshot made me flash back to "intro to (any language)" courses: the left-aligned number box, the blocky key layout w/ lots of wasted space, and the curios absence of a 'minus' key (there is a plus/minus key that looks like negation...?)
A+ for realism... |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 16:36
•
by
Kokuma
|
|
OK, found some bugs... Well... Two, in facts.
1) there's a buffer overrun when you type too much numbers (more than 15) in the calc UI... Well... it's WTF code :) 2) another bug that I fail to explain : when the number begins to get big (> 10E35), the malloc(20) in "int IsNegative(float)" returns a null pointer. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 17:16
•
by
sammy
(unregistered)
|
|
From King of Prussia, PA? Hey! Hi from Paoli!
Captcha: stinky. Just like the code. Ah. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 17:34
•
by
dkf
(unregistered)
|
Hah! Did you bother to look at the code? It's got more than enough strangeness even if you're unreasonably biased against comments... |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 17:44
•
by
dkf
(unregistered)
|
Even when it is a reference to one of the greatest classic WTFs of all time? Have you no sense of history, no feel for the true nature of this site? Fie for shame! |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 18:53
•
by
Joost
(unregistered)
|
|
Oooh that code just makes me itchy all over. Well done.
|
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 19:31
•
by
another coder
(unregistered)
|
Of course I'm sure you're aware that if you write your AAC and MP3 decoders correctly you don't need a divide (the block codes can be recovered with a multiply, or even better rigged huffman decode tables) Anyhow, lucky bugger actually gets routines to do divide :( I suppose that he gets log, exp & pow too! |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-04 22:29
•
by
Spacecoyote
|
|
Big deal. Everyone knows division is simply reciprocal multiplication.
|
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-05 01:31
•
by
alt.jokes.pentium
(unregistered)
|
|
> Skeptical of floating point operations on the then-new
> Pentium processors Ooooops. What's a genuine serious non-WTF doing in a place like this? The Pentium belonged here but the skepticism was necessary. This almost reminds me of one of my WTFs. I had successfully written microcode to implement a SQRT machine instruction using available registers, but my implementation of a DIV instruction spilled one value to the user's addressable stack. A friend kindly asked why I didn't shift new bits into reusable space in a register that I had just shifted other bits out of. Then she said my blush was really impressive. (This doesn't qualify as a genuine reminder of a WTF because I was an undergraduate, and the university wasn't even WFTU. Oh well.) |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-05 06:42
•
by
John
(unregistered)
|
You soft pampered desktop developers. You really have no idea. Not that long ago, I was programming devices with 64 bytes of RAM (it's not as bad as it sounds - they had 1K of ROM for the code). No divide? No multiply either. And no XOR. And a six entry stack. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-05 09:52
•
by
Edss
(unregistered)
|
There is if it aims to compete with the likes of Ho-Speed Printers... |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-07 02:22
•
by
Simmo
(unregistered)
|
Sounds like bliss to me. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-07 04:47
•
by
John
(unregistered)
|
It was. Simple straightforward programming to solve simple straightforward problems. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-06-12 14:27
•
by
John Smallberries
|
You mean you /wrote/ the WTFs yourself! Don't worry, we've ripped all your code out by now. |
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2007-11-23 04:50
•
by
Seegras
(unregistered)
|
|
There was no "original Doom for DOS", the original was actually programmed on NeXTSTEP and then ported to DOS (and to everything else, from Linux to Irix to Solaris).
|
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2008-11-28 21:35
•
by
855
(unregistered)
|
Re: OMGWTF Finalist #01: The Buggy 4-Function Calculator
2010-02-25 18:42
•
by
tharpa
|
I thought ninjas would be more like "Hai yaah!" |
| « Prev | Page 1 | Next » |