Implementing a simple object system from scratch in Ruby
“What I cannot create, I do not understand.” – Richard Feynman
What I found out over time, is that the best way to really learn something is to implement it yourself. What we’re going to do is implement an object system from scratch. We won’t be using classes and just build it from anonymous functions and hash tables. We’ll implement method lookup, prototypical inheritance, mixins and some form of metaprogramming. I’m going to use Ruby for this, because it’s one of my favorite languages and it’s...
Read more at metacircu1ar.github.io