A Gentle Introduction to Ruby
This two day course is designed for anyone interested in learning to program using Ruby.
- What is Ruby?
- Basic syntax and statements.
- Data types and data structures.
- Code organisation and modules.
- Creating your own command-line based game.
Basic knowledge of how to use a computer and text editor useful, but not required.
Your own laptop preferably running either Linux or Mac OS X. We can supply free Ubuntu CDs on the day.
Day 1: What is Ruby?
We will be covering the basic setup and installation of Ruby on everyone's computers, including the use of the
We will focus on creating several basic scripts including processing command line arguments, reading data from files and standard input and printing out information. As part of this, we will review basic Ruby data types such as numbers, strings, arrays and hashes.
Finally, as time permits, we will review the organisation of source code, including how to use functions, classes and modules to keep source code organised.
Day 2: Robot Finds Kitten
During this day, the goal is to provide people with an enjoyable goal, and an environment where they can ask questions and move at their own pace, using the knowledge taught the previous day.
Information covered in the course will be written up and provided online to attendees of the course. All source code and associated documentation will be made available.