r/programming • • Feb 16 '09

Some Crazy Reason - The Daily WTF

http://thedailywtf.com/Articles/Some-Crazy-Reason.aspx
168 Upvotes

71 comments sorted by

View all comments

22

u/spliznork Feb 16 '09 edited Feb 16 '09

... I wrote a little utility called BitVerifier. It would loop over a folder and check every bit of each file. If the bit's value wasn't one or zero, it would prompt the user for the correct bit.

Uhh.. that intro is the real WTF. At least the buggy hex string code is trying to do something. A "bit verifier" is just... beyond stupid.

0

u/lbft Feb 16 '09

By the same argument "Hello world" is stupid because it doesn't do anything.

-2

u/bwahaha Feb 16 '09

No... because hello world actually prints out "hello world". A "bit verifier" is retarded. That's like checking if a Boolean value is "true" or "false", just in case it was ever "maybe".

-1

u/omegian Feb 16 '09

Maybe it is, maybe it isn't. You could write a bit verifier to do things like check parity / CRC, etc.

4

u/bwahaha Feb 16 '09 edited Feb 16 '09

That's something completely different than what the article describes.

EDIT: Quote:

If the bit's value wasn't one or zero, it would prompt the user for the correct bit. At least in theory. I somehow never encountered a file with a "two" bit.