From: Todd Benson Date: 2007-12-19T04:05:59+09:00 Subject: Re: Lets See Your Best Human Readable Ruby Script On Dec 18, 2007 10:24 AM, Rolando Abarca wrote: > I'm starting to get bored with this thread, so, in an effort to stop > it, let's see what casimir wrote with his 1337 ruby h4ck1ng abilities: Yeah, I'm pretty much done with it too, but will chime in for kicks. > 1 "RichFatNorthAmerican".each do |help| > 2 if ($doingNext = nil || $doingNext = "SurfingForPr0n") The guy/gal either doesn't know what "if" is for or is simply saying that any label such as "RichFatNorthAmerican" will never, ever donate in an obfuscated way. Still, the use of globals I don't get though, except maybe for trying to make a statement, which csmr alluded to earlier in the thread (forgive my run-on sentences). > 3 $donation = false > 4 help << $doingNext.replace("Help End Poverty!") > 5 end > 6 end > 7 #Disclaimer: Seems like a nice deal. In reality I have no idea > whut it is! > 8 #do stuff > 9 #... > 10 if $donation == true > 11 $doingNext.gsub!("Help", "Aww, relax mang! You already did Help") > 12 else > 13 $doingNext << " Check out http://laptopfoundation.org/participate/ > " > 14 end > 15 puts $doingNext irb(main):001:0> puts " Check out http://laptopfoundation.org/participate/" [snip excellent analysis from Rolando of code misbehavior] > > regards, > -- > Rolando Abarca > Phone: +56-9 97851962 > My Amazon Wish List: http://www.amazon.com/gp/registry/wishlist/3AGJOT5E6SIQB Finally, I'll say to csmr, you either don't know what you are doing or you do and are polluting a list with a joke that doesn't help kids with free laptops who might want to learn Ruby. I'll get off the soapbox now. Todd