views:

47

answers:

2

It is easy enough (for 90% of aop features) to do it without any support being the language itself, like in most dynamic languages like python and ruby. However, Dojo had direct support for it on 1.3.2. What happened in the latest versions? Did they remove it?

Is there another javascript aop library that should get more attention?

+1  A: 

Given the flexible syntax candy available in Javascript, I'd imagine there would be a billion AOP libraries out there.

A quick Google search brought up the following:

... and another Stackoverflow question

Sam Day
+1  A: 

dojox.lang.aspect is still there, still in use by serious projects. Nobody removed it. In fact I hope parts of it will be an important part of the upcoming Dojo 2.0.

What was the reason for your question? Couldn't find some links, or was it something else? Just let me know, and I'll help with that.

Update:

The API documentation link: http://dojotoolkit.org/api/dojox/lang/aspect.html

The link to my blog post about AOP (it is listed in your question: http://lazutkin.com/blog/2008/may/18/aop-aspect-javascript-dojo/) is still current, so you can use it as a general reference. I plan to migrate it to the official reference documentation.

Eugene Lazutkin
Couldn't find in the latest documentation. It made it seem like it was abandoned.
Daniel Ribeiro
Of course not. I'll investigate the doc problem. For now I am adding the API doc link to my answer.
Eugene Lazutkin
Great. It would be even greater if it was provided as a separate library outside dojo, but javascript projects, outside Nodejs ones, don't usually have modularity as a big concern.
Daniel Ribeiro
Dojo was originally conceived as a library of libraries. It still shows. For Dojo 2.0 we are working on a common module and package format, which can be adopted by other projects. So you wish may come true. ;-)
Eugene Lazutkin
OTOH nobody prevents other developers from porting any part of Dojo to other library or converting it to be standalone. It is definitely possible, and not hard as some people imagine.
Eugene Lazutkin