The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Entry #100206 - Rube Goldberg's Calculator

Last post 06-11-2007 12:32 PM by Alex Papadimoulis. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 06-11-2007 12:32 PM

    Entry #100206 - Rube Goldberg's Calculator

    Hello, and thank you for accepting my submission to the OMGWTF. I've decided to not implement many "groin kick" WTFs (like trying to create my own string library), as we've seen tons of those in the Code SOD's. Instead, I have created a "Rube Goldberg" calculator, with a wide variety of smaller WTF's sprinkled here and there. It's a compilation of mostly big picture wtf's, a.k.a. anti-patterns. Premature Optimization, Not-Invented-Here, Copy and paste programming (thankfully not a lot of that), Golden hammer, Reinventing the square wheel, etc. I sprinkled some WTFworthy comments too. Enjoy! Some of the features of this project: -Caching of final values in xml for "faster" access later. -Pointless use of inline assembly. I hope the test machine has SSE2 instructions available. -Conversion of floats to fractions for "faster" and "more accurate" results -Abuse of bitfield types. -Storing positive and negative as enumerations... DivideByZero is the equivalent of FILE_NOT_FOUND -A homegrown XML parser. Instructions: None really needed. Open the solution, compile, and run. --Charles Nadolski, C# programmer PS: Be sure to look for a file called ResultCache.xml when you're done running the tests, hee hee.
Page 1 of 1 (1 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems