If you play around with Ruby long enough you start to notice that Ruby programmers overall tend to prefer small domain specific libraries, Ruby on Rails notwithstanding. There are many good reasons for this kind of approach from a software engineering perspective but the biggest reason is that Ruby makes it extremely easy by providing the right kind of metaprogramming facilities. Continue reading
Do you ever wonder why almost every library out there is a convoluted mess of ill conceived abstractions with ill defined composition semantics? I do all the time and I think I have finally figured out why. Continue reading
apply. These are methods on function objects that allow you to change what
this points to. If you haven’t stumbled on those methods yet then you have more than likely used them indirectly via
apply. The lessons can be found at http://ejohn.org/apps/learn/.
Ruby has similar context manipulation facilities and they are even more useful. In fact one Continue reading