Friday, March 30, 2007

Eschew Obfuscation

Eschew Obfuscation

Source: A T-Shirt from the ComputerGear catalog.

Explanation: If you need an explanation, look it up.

Check out Computer Gear:



Or link directly to this T-shirt.

Special Blog Bonus: Code from the International Obfuscated C Code Contest, which is always fun. Look for the winning entries. Here is a sample entry of truly self-documenting code which will add two positive integers. Remember, this code will compile with an ANSI C Compiler.

Another good one is here. It's quite fun to read. (Note that (char)lotte and (char*)lie are incompatible types!) The program is a "Picking the Daisy" simulation.

2 comments:

Rich said...

So, there's nothing like passing engineering nerd-edity down to the next generation.

For school last year (6th grade), Nick had to write a word on a T Shirt and wear it to school. He couldn't pick a good one. So, I suggested obfuscate.

He did not eschew my advice.

Rog said...

At first, I thought the self documenting code was ASCII art of a guy flipping me off then I realized it was an adder.
Moreover I verified that it compile with gcc on Fedora Core and that a.out could successfully add 2 and 2.
/geek