About The Contest
The first ever Olympiad of Misguided Geeks contest at Worse Than Failure (or OMGWTF for short) is a new kind of programming contest. Readers are invited to be creative with devising a calculator with the craziest code they can write. One lucky and potentially insane winner will get either a brand new MacBook Pro or comparable Sony VAIO laptop.
Entry #100319: XP-WTF
Extreme Programming gone extreme - took the provided gtk-skeleton as the base, threw out lots of redundant and superflous code in CalcFunc.cpp (switch/case, more functions than any sane person could need) and added The One Line that does all the 'magic' - voila!
Testcode/Skeleton/'real'-code-ratio: ca 350/120/1 (calculation done with submission-tool, so no guarantees on exact numbers)
All WTF-testcases are included, so you just have to 'make', read '0 fails' and send 1st price to my email.