G
Giles Bowkett
Actually I meant the $ everywhere. That's for globals only. Bad thing.
You were serious about that?
people.each do |person|
person.help(end_poverty)
end
Boom. Done.
First of all **rich** North Americans aren't fat. Rich North Americans
have personal trainers and time to go to the gym. Obesity is inversely
linked to income in the US.
Secondly that's what Ruby looks like. The code you wrote didn't even
look like Ruby. You used ifs and globals all over the place and you
ran an iterator on a string without newlines, which does *nothing*.
Thirdly, your spelling is all wrong, and of course I didn't try to run
it, none of your variables were defined. Virtually none of that code
would run. And fourth you really don't ever use globals, ever. You
return values from methods. That's how you prevent stuff from
disappearing. But if you're doing a short one-off script, you can
still just define the variables before the block and you don't have
any disappearing problem to contend with.
Anyway:
How **old** are you? What are you bothering somebody like me for? This
isn't that kind of list. I think it's past your bedtime.
--
Giles Bowkett
Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com
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?![]()
You were serious about that?
people.each do |person|
person.help(end_poverty)
end
Boom. Done.
First of all **rich** North Americans aren't fat. Rich North Americans
have personal trainers and time to go to the gym. Obesity is inversely
linked to income in the US.
Secondly that's what Ruby looks like. The code you wrote didn't even
look like Ruby. You used ifs and globals all over the place and you
ran an iterator on a string without newlines, which does *nothing*.
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?
Thirdly, your spelling is all wrong, and of course I didn't try to run
it, none of your variables were defined. Virtually none of that code
would run. And fourth you really don't ever use globals, ever. You
return values from methods. That's how you prevent stuff from
disappearing. But if you're doing a short one-off script, you can
still just define the variables before the block and you don't have
any disappearing problem to contend with.
Anyway:
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?![]()
How **old** are you? What are you bothering somebody like me for? This
isn't that kind of list. I think it's past your bedtime.
--
Giles Bowkett
Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com