The Wikipedia article (http://en.wikipedia.org/wiki/Aspect-
oriented_programming) is the best resource I've found on the subject,
reading through some of the 'implementations' in the languages I'm
familiar with really helped me grasp the concept.

I ran into it a while ago when I came across Ajaxpect (http://
code.google.com/p/ajaxpect/wiki/ProjectHistory), which is also one of
the JS implementations linked from Wikipedia .  I too am new to AOP
and right now I only use it for debugging, it doesn't save me too many
lines of code but it has changed the way I think about programming.

I feel like I've read something on AOP from the jQuery devs but I
can't find where... I know AOP is used all over Dojo to great effect.
I've also read an interesting post here about XMLHttpRequest and
jQuery AOP: http://radio.javaranch.com/val/2007/12/05/1196862811199.html
.

AOP seems to be most useful for code that repeats across methods to
check or store data, such as a session variable, data or error
logging, or as a more flexible try/catch alternative (as in the XHR
post).  The downside seems to be that you need good familiarity with
the source -- because it's unobtrusive a change in the main code often
means a change in AOP code.  However an advantage of AOP is that you
can change the AOP code as often as you'd like without needing to
touch the source.

I don't have too much experience but I'd like to discuss AOP more and
become more comfortable with the techniques.  I too would like to see
more real-world examples.  Who out there loves AOP?

Charles
doublerebel.com

On Jan 7, 3:26 am, PragueExpat <[EMAIL PROTECTED]> wrote:
> Surfing dzone.com this morning, I came across this plugin for jQ:
>
> http://code.google.com/p/jquery-aop/wiki/Reference.
>
> Being unfamiliar with aspect oriented programming, I did a quick
> wikipedia lookup and quickly realized that this could be a great way
> to keep code clean.
>
> My question is this: who among us can better explain aspect oriented
> programming or provide some examples of how to use it effectively?
>
> What types of functions are best applied via this methodology?
>
> Any known drawbacks?
>
> Thanks for any info on this subject.

Reply via email to