• Forum
  • Lounge
  • And you thought was goes on here is bad.

 
And you thought was goes on here is bad...

http://thedailywtf.com/Articles/Fred-Code.aspx

Some highlights:
Only in Fred Code could one find such monstrosities as a function with an 86-character name and 57 characters of C code within the function. Which, as it happened, led to a rather strange bug caused by two such functions with similar names and the compiler's 32-character length limit for function names.


For the main course, you'll have to open the link.
muhahahah I beat Fred! By far! >:)

http://www.cplusplus.com/forum/lounge/9000/

Being the worst or the most incompetent is also a title!
Last edited on
But I don't think you ever implemented your own double compare: http://thedailywtf.com/Articles/Code-Ownership-Gone-Awry.aspx
Last edited on
thedailywtf is awesome.
I was revising my old code for optimizations and proofreading, when I found the following snippet:
1
2
3
4
template <class ElementOfCommutativeRingWithIdentity>
void Monomial<ElementOfCommutativeRingWithIdentity>::IndexToDegrees(int index, int MaxDeg)
{ assert(false);
}


Needless to say, there was plenty of code to be optimized...
Last edited on
Topic archived. No new replies allowed.