The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
`ruby -h`.unpack(%w[x558 155ax95 277 1a].join('aX')).join

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Red Handed

Posts: 1158
Nickname: redhanded
Registered: Dec, 2004

Red Handed is a Ruby-focused group blog.
`ruby -h`.unpack(%w[x558 155ax95 277 1a].join('aX')).join Posted: Feb 22, 2005 8:24 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Red Handed.
Original Post: `ruby -h`.unpack(%w[x558 155ax95 277 1a].join('aX')).join
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Red Handed
Latest Posts From RedHanded

Advertisement

The obfuscated code in the advert is a tiny ETA interpreter wizarded by Stephen Sykes in 2004—it took him two years to refactor off the last 81 bytes!

Here’s the code nicely printed:

 i=*$<;_=a=$==-1;i[_].scan(/\w/){!p='htaoinse'=~$&or
 a<0?i<0?i.slice!(a-p):i[p+a] ,,==0||(_=c-2;break), _+2
 ,utc(p), getc||a a=0, ,,-c ,,;i<6?i<

Look for the ensuing flamewar over the wrongness of this all on ruby-talk. Obfuscation still pops up as a controversy. If you let stuff like obfuscated Ruby get under your bonnet, uh.. well.. why is it that you’re wearing a bonnet again??

Read: `ruby -h`.unpack(%w[x558 155ax95 277 1a].join('aX')).join

Topic: Better Performance for Ruby on Rails Previous Topic   Next Topic Topic: Programming Ruby 2nd Edition

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use