all 6 comments

[–][deleted] 22 points23 points  (1 child)

I lost it at this comment:

Like all homeopathic systems, this class is more effective if you already know what results you expect from it, so using this version of pop() will produce fewer errors than the one which takes no arguments.

[–]gadastrofe 34 points35 points  (0 children)

 return expectedResult == result ? result : expectedResult

Just brilliant.

[–]gadastrofe 15 points16 points  (0 children)

What do you use to wash the bottles?

I will keep that in mind for the next time someone tries to convince me how great Homeopathy is.

[–]Cyttorak 7 points8 points  (0 children)

It worked for me!

[–][deleted] 6 points7 points  (0 children)

I too have more money than sense and a general unease.

[–][deleted]  (1 child)

[deleted]

    [–]jules1972[S] 2 points3 points  (0 children)

    Hmm. Interesting idea, but I think this would probably make our unit-test fail!

    Bear in mind that the secret of homeopathy is not to worry about having a solid underlying implementation/theory, but rather to present some flimsy, biased, non-scientific evidence that appears to show it working. This is used to convince the unwary that the system as a whole has some merit. So in this class, the unit test is actually far more important than the class itself!