I’m translating my java implementation of textile to Ruby now. It’s really a learning experience. Ofcourse it’s already done, but I have good reasons to do it again: partly to make it more extensible/flexible, partly because I want some things I didn’t get right away with redcloth.
I’m afraid I would do it al differently a second time around (but that shows you you learnt something).
There are some design patterns I have really difficulty with:
1) Static properties (with static accesors) and inheritance, seem to go counter to my intuition (subclasses seem unable to access them.)
2) Subclasses of built in classes don’t seem to behave as I expected (if I add a method in such a subclass, I get runtime errors that the built in class doesn’t have such a method.)
But Ruby is fun.
