From: Todd Benson Date: 2007-12-18T03:37:39+09:00 Subject: Re: Smallest device to code ruby on? On Dec 17, 2007 4:20 AM, Casimir wrote: > Giles Bowkett kirjoitti: > >>>> if ($doingNext = nil || $doingNext = "SurfingForPr0n") > >>>> $donation = false > >>>> help << $doingNext.replace("Help End Poverty!") > >> It was optimized for readibility, not syntax rules. > > > > Actually I meant the $ everywhere. That's for globals only. Bad thing. > > > Ya I kno. But if it wuzn't globals then it wuld "disappear" once the > block ends and then it all wouldn't work.. You DID try to run that, right? > > BTW. You still all big on words and no show, no bite. Lets see you code > that better and maybe then I can admit you may have a point.. Or are you > chicken? :p > > Csmr You can't be serious. But, if you are, just know that globals show a lack of discipline -- not to mention, lack of elegance -- in programming with ruby. You are kind of fighting the idea of location and control of scope, which is a powerful tool ... one which you are throwing away. The only time I've used globals was to play "golf". Todd