podcast
api

AOP in scripting languages

Roman Porotnikov writes in deep:code on how to implement AOP in javascript. I just want to point out that this principle can be applied to ruby and perl, too. AFAIK in smalltalk this should also work. What have this languages in common? Functions can be redefined at runtime and functions can be referenced. This way, interceptions can be made by memorizing the original (intercepted) method and passing it to the actual interceptor implementation.
I don’t want to trigger YAAINJIT (Yet Another AOP Is Not Just Interception Thread), so please don’t comment on this oversimplification.

blog
content

{ Comments are closed! }

trademarks
search
Bear