From: "Marcel Molina Jr." Date: 2005-06-06T05:37:48+09:00 Subject: Re: Teaching Ruby On Sat, Jun 04, 2005 at 06:02:32AM +0900, Joe Van Dyk wrote: > Somewhat related to the other thread I just started. In order to get > some grassroots support for Ruby, I've offered to host a couple > tutorial meetings regarding how to use Ruby. > > The backgrounds of the people who would attend are somewhat varied, > but are currently polarized between older people (45+) who are > strongest with Ada and C (and some know Perl), and newer people (me > included) in their 20s who probably know more Java-ish, C++, maybe > Python. > > My goals for the meetings is to 1) Show them the language 2) Get > them productive in it 3) Show them why we should use it. > > Any ideas on how to do it? Blocks, blocks and more blocks. Use class methods to make a domain specific language. Take advantage of open classes to add or overwrite methods of built in classes. Do something really nifty with inject. Show how nice and clean Ruby OO is. This link provides a kind of comparative snapshot of this: http://www.io.com/~jimm/writing/Intro_to_Ruby.html#listing1 (Java, Objective-C, Perl and Ruby) Provide code samples that show how readable it can be: auction.close 3.minutes.from_now unless # ... etc There are many more things. That's all I come up with at the moment. marcel -- Marcel Molina Jr.