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.

Navigation

Advertisements

Entry #100198: Enterprisey Code that Smokes Hash

by Jennifer Elaan
A simple version of the hard-coded test cases calculator, with a bit of "how not to parse command line options" tossed in.

Simply hashes the operation in progress, switches on the hash value, and returns the appropriate result.

This code likely requires gcc, but since it's built with the gtk template, that should be obvious.

Download0 Comments