Advancing in Ruby
When I started looking seriously at Rails internal code, I
soon realized that what I had learnt during my first months of Ruby
was simply inadequate to even begin to understand the internal
organization of Rails (and probably of any Ruby-based domain specific language).
This section of the site reflects the subsequent work that I began in Ruby.
The book of D.Black was extraordinarily useful as an introduction to some of these subjects; whenever possible, I follow the same terminology that he uses. The following topics are discussed:
- lambdas, Proc and closures (in general, what D. Black calls callable objects)
- defining iterators for custom collections
- binary trees, exploring alternatives to recursion (topic unrelated to Rails)
- eval methods [to be done]
- dynamic generation of methods
- callbacks
[URL: ; Last updated: ]