`
reverocean
  • 浏览: 196123 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

AspectR

    博客分类:
  • Ruby
阅读更多
The concept of aspect-oriented programming (AOP) is an interesting one. In AOP, we try to deal with programming issues that crosscut the modular structure of the program. In other words, some activities or features of a system will be scattered across the system in code fragments here and there, rather than being gathered into one tidy location. We are attempting to modularize things that in traditional OOP or procedural techniques are difficult to modularize. We are working at right angles to our usual way of thinking.

Ruby certainly wasn't created specifically with AOP in mind. But it was designed to be a very flexible and dynamic language, and it is conceivable that these techniques can be facilitated by a library. In fact, there is a library called AspectR, which is an early effort at implementing AOP; see the Ruby Application Archive for the most recent version.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics