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

前端 未结 7 1223
眼角桃花
眼角桃花 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:23

    Because the power of AOP, if there is a bug your crosscutting, it can cause to widespread problems. On the otherhand, someone might change the join points in a program – e.g., by renaming or moving methods – in ways that the aspect writer did not expect, with unintended consequences. One advantage of modularizing crosscutting concerns is enabling one programmer to affect the entire system easily.

提交回复
热议问题