Ruby Programming - 2 day course
Can't see a suitable date or location?
Click here to register your interest in this course and we will
keep you informed when any new dates are added.
Synopsis
This course introduces delegates to the Ruby programming language, which is the basis of the Ruby On Rails web development framework that has taken the web development world by storm.
Delegates will learn how to develop code which is elegant and maintainable. You will explore how to write solid object orientated code using best practices.
We will use live coding sessions, participatory discussion and practical examples to collectively explore Ruby.
The course is suitable for anyone who has experience with programming in a language such as PHP, Java, C#, VB, Pascal or C.
This course is delivered in conjunction with Interkonect - leading Ruby On Rails practitioners who develop software that enables people and teams to get work done by providing tailored Business Websites and Software.
Duration
2 days
Cost
£595
Prerequisites
Students are expected to have experience of a programming or scripting language such as PHP, Java, C#, VB, Pascal or C.
No prior exposure to Ruby is necessary.
Detailed course contents
= Getting Aquainted with Ruby =
Software & Tools
- Installing Ruby
- Installing libraries
- IDE or Text Editor?
Introduction
- What is Ruby?
- IRB (Interactive Ruby)
- Strings
- Symbols
- Blocks
- Arrays
- Hashes
- Boolean and nil
- Ruby Coding Standards
Control Flow
- Conditionals with if and case
- Looping with while, for and friends
- Error Handling and Exceptions
Object Orientation
- Object Instances
- Class construction
- The Inheritance Chain
- Object State and Persistence
Attributes
- Local & Instance Variables
- Getting & Setting Attributes
Modules & Classes
- Open Class Definitions
- Adding Behaviour with Mixins
- Modules or Inheritance?
- Modules In Practice
= Ruby in practice =
The Core Library In Depth
- Strings
- Numbers
- Times & Dates
Collections & Enumerable
- The Array, Hash, Range & Set Classes
- Code Blocks & Iteration
- Filtering & Processing Collections
Files and IO
- Reading and Writing files
- Interacting with the File System
- Configuration with YAML
- Templating with Erb
Metaprogramming & Dynamic Ruby
- What is Metaprogramming?
- "Method Missing" Techniques
- What are (Domain Specific Languages) DSL’s?
- A look at Sinatra & Rake DSLs
- On-the-fly Code Generation
- Examples & Techniques
Interpreters & Virtual Machines
- An evaluation of the options
- Ruby 1.9 New Features
- The future for Ruby...