Submitted by Anonymous (not verified) on Fri, 06/19/2009 - 14:58.
I'd argue that programmers relying on how they "expect" a language to act when they haven't taken the time to learn it is The Real WTF here.
It's actually not a stretch to expect a language to act like the docs say the language will act. Nowhere does it say that == is sufficient for all logical tests. it does however explicitly say that "0" == 1 (as does any string). In any case, this is what Unit Testing helps you avoid in any language - programming based on assumptions and expectations instead of reality.
I'd argue that programmers
I'd argue that programmers relying on how they "expect" a language to act when they haven't taken the time to learn it is The Real WTF here.
It's actually not a stretch to expect a language to act like the docs say the language will act. Nowhere does it say that == is sufficient for all logical tests. it does however explicitly say that "0" == 1 (as does any string). In any case, this is what Unit Testing helps you avoid in any language - programming based on assumptions and expectations instead of reality.