digital adj. Having digits.     peer n. A comrade; a companion; a fellow; an associate. inmotion    
   
Recent Articles
Stop DNSMasq From Forwarding Local Hostnames
Saturday, September 25, 2010
Securing your Wireless LAN
Wednesday, August 18, 2010
Some tips and things you might not know about your wireless network.
Using Different Subversion Client Versions
Wednesday, August 18, 2010
Handling a Subversion Repository URL Change
Sunday, May 3, 2009
If your repository URL changes, you can use the following command to fix existing snapshots.
vfat Mounts Default to Lowercase Shortnames
Tuesday, April 21, 2009
I want a "this is brain-damage" quote from Linus for this mess.
VirtualBox or VMWare Virtual Machine at Login
Sunday, April 12, 2009
How to start a virtual machine in X when a user logs in.
Dialog Progress Bar Through Pipe
Sunday, April 12, 2009
How to use dialog to display a script progress bar and communicate progress to it through a named pipe.
Mount JFFS2 Image
Saturday, October 25, 2008
Example of how to mount a JFFS2 image using mtdblock.

There is no such thing as a boring project. There are only boring executions.
- Irene Etzkorn

Blog-Coding...

Coding Obfuscation

Saturday, June 25, 2005 by digitalpeer

The The International Obfuscated C Code Contest has always been interesting. It's fun to read when it's intentional.

Ran across some great examples of Coding Obfuscation that started out making me laugh- then I quickly got disgruntled when I reflected on code i've read by other people. The first example shown is fun ...
char *p;
switch (n)
{
case 1:
    p = "one";
    if (0)
case 2:
    p = "two";
    if (0)
case 3:
    p = "three";
    printf("%s", p);
    break;
}

This reminds me of the example in Coroutines in C.

Even cooler, is the Befunge programming language. I can't believe I've never seen it despite its age. It's a pretty inspirational piece of work at an inherent obfuscated programming language that adds a little more challenge as if it's needed.

Can you read this?
  9::*2*+00p0v"."0<
>310p0","     >"llaw eht no "v  >#v_ ^
^_210p0"--:"                 v  ,  
 :    v     " of beer"       <  :  
 -                >"selttob"00g.^ <     <
 1         >00g1-#^_$" elttob erom enO" ^
      >00g#^_$" selttob erom oN"        ^
 ^_110p0",dnuora ti ssap ,nwod eno ekaT"^
  ^:-1_010p00g1-00pvv:-1g01_@#g00,*25<
      ^             <


Submit Comment to This Article - Be the first!
Please post a comment if you have something to add, find something wrong, or would like more information on the topic at hand. Do not use the comment form to contact the author about unrelated concerns!

Name: Email (optional):
Enter verification number here: