From: Rolando Abarca Date: 2007-12-19T01:24:31+09:00 Subject: Re: Lets See Your Best Human Readable Ruby Script 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: Note: I'm only doing this because I'm bored, had a terrible night, and casimir tried to run some pseudo-code before, not even realizing someone was writing pseudo code. So, I'm going to analyze your code in the same way (a nonsense operation to some nonsense code): 1 "RichFatNorthAmerican".each do |help| 2 if ($doingNext = nil || $doingNext = "SurfingForPr0n") 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 1: what's the point of doing "each" to a string? 2: this condition will always be true, remember, conditions should use ==, or === or some other operator that returns a boolean value, unless you are testing for something else. 4: where's help defined? 4: what are you replacing?. Here, doingNext is set to "Help End Poverty!" 10: where do you set donation to true?, because you test in line 2 is always a "true" value, donation is always set to false. 13: so far, and because the code above, this is always executed. 15: end of nonsense code. What you wrote is similar to doing something like this: if nil here(some, ruby, code) that(has, no, meaning) << but with a { valid syntax } end puts "i'm so kewl with my h4x0r sk1lzz" Hint for casimir: some times, in order to make a joke or something similar, people write pseudo-code, that it's not intended to be run, and usually its written using the syntax of the language in question, for instance, what Giles wrote: people.each do |person| person.help(end_poverty) end is much more valid than what you wrote. ps: I will not reply to any of your responses in this thread. If you want to say something, please mail me directly. Let's recycle some bits and stop the noise. Please let's get back to our regular schedule. regards, -- Rolando Abarca Phone: +56-9 97851962 My Amazon Wish List: http://www.amazon.com/gp/registry/wishlist/3AGJOT5E6SIQB