
We're so busy during the week at the moment that I'm running an extra
Ruby Course this weekend. The main use of Ruby is within "Ruby on Rails", but our course concentrates on the language itself and so it's suitable for people who are using
RSpec,
cucumber and
Watir as well as Rails.
Here are some links to new Ruby examples added this morning, from yesterday's practicals:
A simple read - calculate - print example in Ruby
Common Ruby Pitfalls
Alternative ways of writing loops in Ruby
Loops and conditionals exercise
Sample class and test program showing common object features in Ruby
Counting events in a file using a Ruby hash
Embedding variables in strings in Ruby (written 2008-11-16)
Associated topics are indexed under
R101 - Ruby - Introduction [2607] Answers on Ruby on Rails - (2010-01-30)
[2287] Learning to program in Ruby - examples of the programming basics - (2009-07-15)
[2286] New to programming? It is natural (but needless) for you to be nervous - (2009-07-14)
[1375] Python v Ruby - (2007-10-02)
[1302] Ruby, Ruby, Ruby. Rails, Rails, Rails. - (2007-08-13)
[1041] Learnt in London - Ruby, Martini, Coral and the Core - (2007-01-17)
[1027] Cue the music, I'm happy. - (2007-01-09)
[664] Ruby course - oops - it's not happening - (2006-04-01)
[550] 2006 - Making business a pleasure - (2006-01-01)
R104 - Ruby - Control Structures [3422] Assigning values to variables within other statements - Ruby - (2011-09-07)
[3397] Does a for loop evaluate its end condition once, or on every iteration? - (2011-08-18)
[3254] Multiple inputs, multiple out, ruby functions - (2011-04-19)
[3253] Is this number between? Does this list include? - Ruby - (2011-04-18)
[3200] How a for loop works Java, Perl and other languages - (2011-03-12)
[3159] Returning multiple values from a function call in various languages - a comparison - (2011-02-06)
[3158] Ruby training - some fresh examples for string handling applications - (2011-02-05)
[3156] Splitting data reading code from data processing code - Ruby - (2011-02-04)
[2975] Why do I need brackets in Ruby ... or Perl, Python, C or Java - (2010-09-29)
[2892] Alternative loops and conditionals in Ruby and Perl - (2010-07-28)
[2711] For loop - checked once, or evety time? Ruby v Perl comparison and contrast - (2010-04-07)
[2619] Passing code to procedures and yield in Ruby - (2010-02-02)
[2471] A short form of if ... then ... else - (2009-10-23)
[1904] Ruby, Perl, Linux, MySQL - some training notes - (2008-11-23)
[1891] Ruby to access web services - (2008-11-16)
[1870] What to do with a huge crop of apples - (2008-11-04)
[1738] Clean code, jump free (Example in Lua) - (2008-08-06)
[1696] Saying NOT in Perl, PHP, Python, Lua ... - (2008-07-04)
[1587] Some Ruby programming examples from our course - (2008-03-21)
[1582] Ruby, C, Java and more - getting out of loops - (2008-03-19)
[1220] for loop - how it works (Perl, PHP, Java, C, etc) - (2007-06-06)
[1163] A better alternative to cutting and pasting code - (2007-04-26)
[995] Ruby's case - no break - (2006-12-17)
[985] Equality in Ruby - == eql? and equal? - (2006-12-14)
[962] Breaking a loop - Ruby and other languages - (2006-12-03)
[960] 1st, 2nd, 3rd revisited in Ruby - (2006-12-02)
R106 - Input and Output in Ruby [3429] Searching through all the files in or below a directory - Ruby, Tcl, Perl - (2011-09-09)
[2974] Formatting your output - options available in Ruby - (2010-09-29)
[2893] Exclamation marks and question marks on ruby method names - (2010-07-28)
[2621] Ruby collections and strings - some new examples - (2010-02-03)
[2614] Neatly formatting results into a table - (2010-02-01)
[2290] Opening and reading files - the ruby fundamentals - (2009-07-16)
R109 - Ruby - Strings and Regular Expressions [3424] Divide 10000 by 17. Do you get 588.235294117647, 588.24 or 588? - Ruby and PHP - (2011-09-08)
[2980] Ruby - examples of regular expressions, inheritance and polymorphism - (2010-10-02)
[2623] Object Oriented Ruby - new examples - (2010-02-03)
[2608] Search and replace in Ruby - Ruby Regular Expressions - (2010-01-31)
[2295] The dog is not in trouble - (2009-07-17)
[2293] Regular Expressions in Ruby - (2009-07-16)
[1875] What are exceptions - Python based answer - (2008-11-08)
[1588] String interpretation in Ruby - (2008-03-21)
[1305] Regular expressions made easy - building from components - (2007-08-16)
[1195] Regular Express Primer - (2007-05-20)
[987] Ruby v Perl - interpollating variables - (2006-12-15)
[986] puts - opposite of chomp in Ruby - (2006-12-15)
[970] String duplication - x in Perl, * in Python and Ruby - (2006-12-07)
Some other Articles
MySQL database from Ruby - an exampleRuby mixins, modules, require and includeFind the linkRuby Programming Course - Saturday and SundayKeys to friendless churchesHiding a MySQL database behind a web pageRecession? Depression?Spa Road Garage and Convenience Store, MelkshamWiltshire Council says - part 2