-
Notifications
You must be signed in to change notification settings - Fork 958
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3d4dc1
commit 4cfccf0
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
AOP | ||
--- | ||
|
||
|
||
AOP(Aspect Oriented Programing),面向切面编程。 | ||
是OOP(Object Oriented Programing)面向对象编程的延续。 | ||
|
||
在OOP思想中,我们会把问题划分为各个模块,如语言、表情等。 | ||
在划分这些模块的过程中,也会出现一些共同特征(如埋点)。它的逻辑被分散到了各个模块,导致了代码复杂度提高,可复用性降低。 | ||
|
||
而AOP,就是将各个模块中的通用逻辑抽离出来。 | ||
我们将这些逻辑视为Aspect(切面),然后动态地把代码插入到类的指定方法、指定位置中。 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters