Aspect-Oriented Programming

昨天的 POM 和大家一起讨论了下 AOP 这个东西,这个东西从年龄上来说应该是不小了,不过目前应用似乎还并不广泛吧,大家了解也并不多,所以我作为话题发起者还是事先收集了一点资料,做一个 Slide :

AOP

其实虽然没有专门地用像 AspectJ 这样的东西去做 AOP ,但是 AOP 这种思想其实应该是被接受得比较广泛了,特别是那些相对比较动态的语言里面,做起来也轻松许多,而像 Rails 以及 Spring 这些流行的框架里面都可以见到 AOP 的影子。AOP 将来将会如何发展呢?我也不敢妄下猜测,只有拭目以待了。 :)

 

这里是 Slide 下载 AOP.pdf。

Comments (7)

shawn October 28, 2007
good,我正在准备这方面的设计,参考一下
James October 29, 2007
这个是什么字体?
pluskid October 29, 2007
to James:
字体是 Constantia 。
Jack October 30, 2007
AOP is nothing but hyper, leave it away and embrace dynamic language pls.
pluskid October 30, 2007
The idea is OK however. I can accept those like rails filter as an application of AOP -- the idea.
Jack October 30, 2007
AOP is not only filters/interceptors. It also contains mixin concept, but it is so natural in dynamical language. Why we need AOP idea? becos static type programming language is so __static__ :)
pluskid November 01, 2007
Hmm, I my self is not willing to apply AOP in a static language. And I think you are considering AOP as a tool to implement some dynamic stuff in static language (am I right?). In my opinion, AOP is the idea of thinking dynamically: When you programming about basic business logic, you don't care about Logging, Security, etc.