in reply to About Obfuscation

What is Obfuscation

An intellectual pursuit where you try to prove yourself cleverer than everyone else by writing completely incomprehensible code that still actually works. Bonus points for getting it to run with strict and warnings.

why and where is it needed

It is not *needed* although it has potential job security benefits ;-) Besides that it can be fun to write/decipher and certainly promotes a deep understanding of Perl

and what does it take to create/implement Obfuscation.

It takes 3 things. 1) imagination; 2) a fairly deep knowledge of the more arcane aspects of Perl; 3) far too much free time

Monks Please do explain with coded examples.

See my sig (you can run it and it will print "tachyon") or Obfuscation or some of the Best Nodes.....

History

As far as I can discern we owe a debt of gratitude to Randal Schwartz aka merlyn you started the craze and coined the infamous 'just another Perl hacker,' moniker which so many obfus eventually generate.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Replies are listed 'Best First'.
Re: Re: About Obfuscation
by hmerrill (Friar) on Dec 20, 2002 at 14:44 UTC
    I agree with tachyon on all counts!

    Obfuscated code, IMHO, is in direct opposition to an acronym that I live by that was taught to me in one of my first programming courses - the acronym is KISS, for Keep It Simple Stupid. If an obfuscated piece of code does 10 things in one line of code, but takes someone an hour to decipher, is compared to a piece of code that does those same 10 things in 10 lines of code, and only takes someone 10 seconds to understand, then I'll pick the later(more code, but easily understandable - easily understandable being the goal) every time.