Like many other programmers I wish I had started learning Ruby when it was created, all the more so for the demand for broad programming skills now. I started using NetBeans 6.1 which made JRuby programming easier. I started to look at some example code written in other languages and write equivalent Ruby code. If you have good programming experience ( Updated : Hope it is not the Kruger-Dunning effect :-)then you can start with fairly complex code when learning a new language.

The example is JavaScript event code that can be mixed-in with other code. Actually I came across many powerful features of JavaScript when I programmed using RhinoScript recently.

I hope to update the code but as of now I have the skeleton below. I wouldn’t be able to explain everything because this is my first serious piece of Ruby code. I will try to use this “mixin” code along with other code.

Groovy has limited support for features like those introduced by AOP. I am just wondering when we will see AOP languages rather than extensions to other languages. Was AOP really designed to only complement OO ? Is it really possible to write a AOP language from scratch ? The following is Groovy code that uses inter-type declarations. You can type this in the Groovy console to create a Mixin.