Whitespace 0x2009 codec challenge

Coders, get your IDE’s ready cause we have a pointless, yet enjoyable challenge: Whitespace codec (0x2009) implementation.

What this should do is simple, it turns any type of data into a file fill of whitespaces (spaces and tabs). Here’s an example, an encoded file. “Why?” is an expected question, and we actually got 4 answers.

  1. To have fun.
  2. To have an excuse to code in your favorite programming language.
  3. To gain experience.
  4. To have all that is needed to handout blank papers to professors/supervisors and drive them crazy.

Actually the last point is the main one, just think of the expression you’ll see!  Okay, now, if you were wondering how this should be implemented, then you should know that this is something sigtermer has taken care of by creating a specification. Having and following a specification is the only way all applications can be compatible.

Now, this is a challenge, something that you do for yourself; no prizes. If you’re interested and you want to do something this awesome, perhaps you should check the challenge page I’ve set up that sums almost everything.

PS: If you’d like to read an explanation of the specification implementation, you can read this (The whitespace codec part).

One last thing, … you’re a geek, you can do it if you want.

3 thoughts on “Whitespace 0x2009 codec challenge

    1. Okay, let’s see! … eh, incompatible! I think I know where you went wrong. I’ll email you the details. 🙂

      Btw, please don’t provide your sourcecode as is when sharing it, encode it then share it. Sharing your source code in plain text would make people think less by reading your sourcecode, where’s the fun in that? … you can call it na7asa though! :p

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.