Monday, July 21, 2008

AOP is popular now

A completely useless piece of trivia that just occurred to me: I think unobtrusive javascript is currently the most widespread and successful use-case of Aspect Oriented Programming.

Yes, I hear that HTML and CSS are not "real" programming languages, but hey they can make computers draw graphic user interfaces just like Swing, GTK or whatever is your favorite GUI API, so they must be programming languages, even if non-turing-complete ones.

If we take JQuery for example, we can easily correlate point-cuts to the "$()" function and advices to methods like "each()". Oh oh, there's also JQuery.fn which is powerful enough to change the behaviour of pretty much your entire environment. If that ain't the power of AOP at work, I don't know what it is :)

No comments:

Post a Comment