I am part of a Linux User Group in Quebec, and I would like to make a
presentation one day about Ruby. Since most people there are not
programmers, but mostly system administrators and that most of them
know nothing about scripting beyond piping a command into grep, I
thought it would be a nice opportunity to show them Ruby and how it can
help them in their everyday tasks.
Now, I would like to know, what sort of material I should cover for an
introduction? Is there already material out there that I could ues? I
will definitly need an introduction to Ruby, its syntax, etc. that is
as concise and clear as possible. My plan of the tutorial right now
would be something along the lines of:
- Running a Ruby program and using irb
- Basic classes (Integer, Array, String)
- Showing how to do input/output with gets and puts
- Showing how to do file and directory operations
- Conditionals and loops (probably limit it to if, while and for x in)
- Using regular expressions*
- Useful modules (Net::Http, Net::SSH, Net::FTP, anything else that
would be useful for sysadmin?)
- Have one or two practical scripts
* could be skipped if the rest is too long
How does that sound? Is there stuff I'm forgetting that I should
mention? Is it too long for just a first introduction? Or good
enough, and if they're interested, they can buy the Pickaxe and ask
questions?
Thanks for the input,
Vincent.
Over how many days? You've listed quite a bit of material to present to
non-programmers.
You might do best to show enough about scripting in general, very
high-level, and some Ruby in particular, so as to generate interest in
further exploration.
James
--
http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
I'm inclined to agree. You can get a good 'non-programmer' start here:
http://pine.fm/LearnToProgram/?Chapter=Contents
> James
>
>
> --
>
> http://www.ruby-doc.org - The Ruby Documentation Site
> http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
> http://www.rubystuff.com - The Ruby Store for Ruby Stuff
> http://www.jamesbritt.com - Playing with Better Toys
>
>
--
Bill Guindon (aka aGorilla)
Vincent Foley wrote:
> Hello everyone,
>
> I am part of a Linux User Group in Quebec, and I would like to make a
> presentation one day about Ruby. Since most people there are not
> programmers, but mostly system administrators and that most of them
> know nothing about scripting beyond piping a command into grep, I
> thought it would be a nice opportunity to show them Ruby and how it
can
> help them in their everyday tasks.
Take a look at the WhyRuby wiki (http://whyruby.rubyforge.org) - it
contains a collection of presentations and links for advocating Ruby,
some of which may be useful for you.
HTH,
Assaph
I found
http://whytheluckystiff.net/articles/wearingRubySlippersToWork.html
pretty helpful as a starter for sysadmin-like guys (even though they're
going to prefer find & grep anyway).
regards,
Henrik
I'd say it is impossible to do what you want to do in just two hours.
You need to deploy only some hooks, and hope that they will pick up.
Maybe some simple administration task automated with ruby in a
detailed step by step walkthrough.
I did a four days * fours hours course about ruby
http://ruby.brian-schroeder.de/course/ once and time is always in
short supply.
best regards,
Brian Schröder
--
http://ruby.brian-schroeder.de/
Stringed instrument chords: http://chordlist.brian-schroeder.de/
There are quite some tutorials out there - you can easily find them with
Ggl
http://www.math.umd.edu/~dcarrera/ruby/0.3/
http://pine.fm/LearnToProgram/
http://www.ruby.ch/tutorial/
http://www.ruby-doc.org/docs/ruby-doc-bundle/Tutorial/
http://ruby.brian-schroeder.de/course/
I guess you will find something usable there.
robert
You can also look at the preentations available in the WhyRuby repository:
http://rubyforge.org/docman/?group_id=251
Curt
Some other collaterals: the wall chart
http://www.cafepress.com/cp/browse/Ntt-ruby+core_Nao-1_Ntk-All_pv-mathomhouse.4631975_No-1_N-0_D-ruby+core
Ryan Davis' Quick ref:
http://www.zenspider.com/Languages/Ruby/QuickRef.html
Also show how the pickax2 is the best indexed software book ever IMO.
That is exactly what I meant. ;-)
Good luck,
Brian