Ruby for Java People
Paolo Perrotta (agile42) (Half-day tutorial)
If you come from the Java or C# camp, then learning Ruby is easy. Really getting Ruby, however, is very difficult. Most people coming from static languages take a very long time to switch their mindset to Ruby.
If you're curious about dynamic languages and don't want to get stuck writing Java-like code in Ruby, then you have to understand the philosophy of dynamic languages, and learn how to use Ruby-specific constructs such as blocks and modules. And just because I wrote the "Metaprogramming Ruby" book, you *know* I'll talk about metaprogramming as well. ;)
In this half-day tutorial, you will:
- Absorb enough Ruby to write useful programs.
- Understand why it's so difficult to adopt a different coding mindset.
- Learn about Ruby blocks, and how to use them.
- Compare Ruby and Java's approach to object-oriented code.
- Meet Ruby modules, and learn why they're more commonly used than superclasses.
- Get acquainted with irb, gem and other useful Ruby commands.
- Look at real-life Ruby code from popular libraries.
- Get your first glimpse at the amazing world of Ruby metaprogramming.
Bring your computer, with Ruby and RubyGems installed. I'll take care of the rest.
Participant requirements: Laptops with Ruby installed - one per pair.
Target audience: Novice