After the huge success of the first three “Ruby Metaprogramming” batches, RubyLearning now announces the fourth official batch from 23rd Oct. 2010.
What’s Ruby Metaprogramming?
Paolo Perrotta has this to say:
As a Ruby programmer, you already know how much fun it is. Now see how to unleash its power, digging under the surface and exploring the language’s most advanced features: a collection of techniques and tricks known as metaprogramming. Once the domain of expert Rubyists, metaprogramming is now accessible to programmers of all levels – from beginner to expert.
Paolo goes on to say the following in a recent interview:
I realized that metaprogramming sits at the very heart of the language, and when you understand metaprogramming, that’s the moment you start “thinking in Ruby”.
Who’s It For?
Anyone who has some background in Core Ruby can make the most out of this course.
What Will I Learn?
The brief outline of this course is:
- Review the object model of Ruby itself:
- read-only variable self
- singleton class
- scope of variables
- Learn a lot of methods:
- class_eval (aka: module_eval)
- class_variables (Try it out: instance_variables)
- instance_variable_set (Try it out: instance_variable_get)
- const_get (Try it out: constants)
- Class.new (Try it out: Struct.new)
- binding (Try it out: lambda)
- send (Try it out: method)
- Do the following five exercises and discuss them in the forum.
- Exercise 1: Get the values from outside the class.
- Exercise 2: Add your code to display ‘I like metaprogramming!’
- Exercise 3: Show lots of ways to define singleton method.
- Exercise 4: Glance inside Ruby with binding method.
- Exercise 5: Define a class without class and def.
- Practice with assignments on how to write a tiny app with Ruby Metaprogramming techniques. The assignments are being prepared.
We will provide you with short study notes. You can learn the following and discuss the same in the course forum.
- Instance variables, Methods and Classes
- Calling a method
- Useful methods in Ruby Metaprogramming
- Ruby Blocks and Bindings
- Solved Problems (two examples)
For Intermediate Participants
We willl open the discussion forum with some advanced topics like “Compare Ruby Callable Objects” (Yugui’s blog posts) etc.
Who is conducting this course?
The course is conducted by Satoshi Asakawa from Japan with 24×7 help from the mentors at RubyLearning. Satoshi is a Japanese Ruby enthusiast.
So hurry, registrations have started.
By the end of the course, and to reiterate what Paolo Perrotta said, you will understand metaprogramming and that’s the moment you will start “thinking in Ruby”.