From: Ray Schneider Date: 2001-03-24T03:28:00+09:00 Subject: [ruby-talk:13150] Re: Examples for a presentation? On Fri, Mar 23, 2001 at 09:40:03PM +0900, Harry Ohlsen noted: > I may be giving a quick introduction to Ruby to a Linux user group > over the weekend (ie, in the next 48 hours, Sydney time). > > Dave Thomas has kindly allowed me to use his slides, and I've been > writing examples to go with some of them, over and above the code > that's in the slides themselves. > > What I'd be interested in, if anyone can help me, would be some short > code snippets that show off some of Ruby's features (and I'm pretty > much a newbie, so I'm sure there are lots of things I don't know > about). > > In particular, I would guess a lot of the audience will know perl, so > examples of how to do things that perl can do and that people think > are important features of perl would be useful, so when someone says > "perl can do this; can ruby?" I'll be able to show them how it's done. > > Similarly for python I guess. > > Note, I'm not looking to say "Ruby's better than X because ...", just > to be able to say "If you were to write stuff in ruby, you can still > do the things you currently do in X". Of course, if the Ruby version > happens to be cleaner or more flexible in some way, so much the > better. > > I'd prefer complete code snippets that I can actually run, but I'm > happy to write some code to call anything you can provide ... so long > as I understand how it works :-). > > Thanks in advance. > I gave a presentation to the Northern Virginia Linux Users Group. The presentation is actually online. It is using eRuby and there is an entire demonstration program available that deals with CVS user management in regards to CVSROOT/writers and CVSROOT/readers as well as CVSROOT/passwd. It doesnt have any checks and is only meant as an example, but it works and actually demonstrates classes, some std lib stuff, and some other functionality. Feel free to use it or take a gander at it whatever. If you have net access during your presentation, it is all run thru eRuby. Heres the link: http://hackfoo.net/ruby-pres click on the little < > at the top to move through...When I wrote this presentation it was basically shortly after having devoured the Programming Ruby book, I was(am) still quite new to Ruby myself. Glad to hear yet another person is advocating its use! It is a great language and does OO so well that as a person who favors procedural, Im really enjoying it. -ray -- ------------------------------------------------ http://hackfoo.net/~ray Do what you think is interesting, do something that you think is fun and worthwhile, because otherwise you won't do it well anyway. -- Brian Kernighan.