From: Josh Cheek Date: 2010-10-31T10:47:35+09:00 Subject: Re: The beauty of Ruby through examples --00163630ff8912498d0493dfe061 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Sep 29, 2010 at 1:40 PM, Adriano Ferreira wrote: > Hey all, > > I'm about to introduce Ruby to a group of people that is not familiar to > the > language, and the approach i'd like to take is simply by distilling out a > few > sample codes. I've been collecting some from around the internet, but i'd > appreciate your suggestions as well. > > I'm looking for code snippets that represent some of the beauty of Ruby > actually, such as: > > # Simplicity > # Expressiveness > # Productivity > # Flexibility > # Dynamism > # Freedom > # Happiness > > I presented about Ruby last night to my school for the ACM at my school, had a few examples to show OO and functional paradigms, and an example to show that it is dynamic. We also did a rails example, we were giving away a 4gb thumb drive, and so made a Rails app to select a winner from a list of contestants, then put it on Heroku and let them go sign up for it themselves. Here were my code examples http://github.com/JoshCheek/PresentationFiles/tree/master/NightOfTheLivingRuby!/ And video of the presentation http://www.vimeo.com/channels/nightofthelivingruby One thing I'll suggest is to have the code already printed out and sitting next to you. Then you can have that organic feel of writing it right there, which I think makes it easier to follow. But you can also save yourself a lot of headache of forgetting something when coding live. I'll also suggest against a Rails example, because there is a lot of stuff going on in Rails, you have to keep lots of different things in your brain all at once, which is difficult to do while you are presenting, and I think the Rails example was the slowest part of the presentation. --00163630ff8912498d0493dfe061--