From: Tim Hunter Date: 2007-10-05T10:04:05+09:00 Subject: Re: [n00b] Need a good reference for var-types/string-esc, etc. Olie D. wrote: > One of the problems with Ruby being so popular is that any google search > with "Ruby tutorial" or similar turns up about 8-bazillion pages, and > they all want you to dive right in to see how easy everything is. > > ...Which is really cool -- BUT! > > I'm having trouble groking the difference between foo, @foo, :foo, > #{foo}, [foo] {:#[foo]} (ok, I made that one up), etc. About the only > one I feel like I understand is $foo -- but how often am I going to use > *THAT*?! (Hint: very-nearly "never.") > > (Heh. $ means "global", right? I haven't used a global var in the most > recent 15 yrs of programming...) > > (Ok, and I sort-of get :foo, but not well enough to describe it, which > means "not really.") > > So, anyway... don't TELL me the difference (well, you can if you want) > -- what I'm REALLY asking is: what is a good reference that describes > all of these things, and how they're different? > > Thanks! Dave Thomas' _Programming_Ruby_ is the canonical Ruby reference. http://www.pragmaticprogrammer.com/titles/ruby/index.html -- RMagick OS X Installer [http://rubyforge.org/projects/rmagick/] RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?forum_id=1618] RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html]