What are the disadvantages of Aspect-Oriented Programming (AOP)?

前端 未结 7 1327
眼角桃花
眼角桃花 2021-02-02 09:54

What are the possible and critical disadvantages of Aspect-Oriented Programming?

For example: cryptic debugging for newbies (readability impact)

7条回答
  •  心在旅途
    2021-02-02 10:14

    With regard to the maintenance/debugging argument, aspect-oriented programming tends to go hand-in-hand with all the other aspects of agile software-development practices.

    These practices tend to remove debugging from the picture, replacing it with unit testing and test-driven development.

    In addition, it may be much easier to maintain a small, clear code footprint with advice than a large, incomprehensible code footprint without advice (the advice being the thing that transforms a large, incomprehensible code footprint into a small, clear code footprint).

提交回复
热议问题