Main Content
Ruby Programming Course - Saturday and Sunday Archive - Originally posted on "The Horse's Mouth" - 2008-11-16 08:26:42 - Graham Ellis
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
Some other articles
R109 - Strings and Regular Expressions Clarrissa-Marybelle - too long to really fit? Regular Expressions for the petrified - in Ruby Global Regular Expression matching in Ruby (using scan) Ruby - standard operators are overloaded. Perl - they are not Ruby - a teaching example showing many of the language features in short but useful program Matching regular expressions, and substitutions, in Ruby Divide 10000 by 17. Do you get 588.235294117647, 588.24 or 588? - Ruby and PHP Ruby - examples of regular expressions, inheritance and polymorphism Object Oriented Ruby - new examples Ruby collections and strings - some new examples Neatly formatting results into a table Search and replace in Ruby - Ruby Regular Expressions The dog is not in trouble Regular Expressions in Ruby Ruby to access web services This article What are exceptions - Python based answer String interpretation in Ruby Regular expressions made easy - building from components Regular Express Primer Ruby v Perl - interpollating variables puts - opposite of chomp in Ruby String duplication - x in Perl, * in Python and Ruby R106 - Input and Output in Ruby Expect with Ruby - a training example to get you started Significant work - beyond helloworld in Ruby Searching through all the files in or below a directory - Ruby, Tcl, Perl Formatting your output - options available in Ruby Exclamation marks and question marks on ruby method names Ruby collections and strings - some new examples Neatly formatting results into a table Opening and reading files - the ruby fundamentals This article Some Ruby programming examples from our course R104 - Control Structures Alternating valuses / flip-flop / toggle - example in Ruby Where does Ruby load modules from, and how to load from current directory Separating your code for easier testing, understanding and re-use; example in Ruby Finding sum, minimum, maximum and average in Python (and Ruby) Conditionals, loops and methods in Ruby - a primer with simple examples Learning to program - Loop statements such as while Learning to Program - the conditional statement (if) Muttable v immutable and implications - Ruby Finding the total, average, minimum and maximum in a program Ruby v Perl - a comparison example Assigning values to variables within other statements - Ruby Does a for loop evaluate its end condition once, or on every iteration? Multiple inputs, multiple out, ruby functions Is this number between? Does this list include? - Ruby How a for loop works Java, Perl and other languages Returning multiple values from a function call in various languages - a comparison Ruby training - some fresh examples for string handling applications Splitting data reading code from data processing code - Ruby Why do I need brackets in Ruby ... or Perl, Python, C or Java Alternative loops and conditionals in Ruby and Perl For loop - checked once, or evety time? Ruby v Perl comparison and contrast Passing code to procedures and yield in Ruby A short form of if ... then ... else Learning to program in Ruby - examples of the programming basics Ruby, Perl, Linux, MySQL - some training notes Ruby to access web services This article What to do with a huge crop of apples Clean code, jump free (Example in Lua) Saying NOT in Perl, PHP, Python, Lua ... Some Ruby programming examples from our course Ruby, C, Java and more - getting out of loops for loop - how it works (Perl, PHP, Java, C, etc) A better alternative to cutting and pasting code Ruby's case - no break Equality in Ruby - == eql? and equal? Breaking a loop - Ruby and other languages 1st, 2nd, 3rd revisited in Ruby R101 - Introduction Ruby - where one statement ends and the next begins Ruby - the second rung of learning the language Answers on Ruby on Rails Learning to program in Ruby - examples of the programming basics New to programming? It is natural (but needless) for you to be nervous This article Python v Ruby Ruby, Ruby, Ruby. Rails, Rails, Rails. Learnt in London - Ruby, Martini, Coral and the Core Cue the music, I'm happy. Ruby course - oops - it's not happening 2006 - Making business a pleasure