Monkey-patching Vs. S.O.L.I.D. principles?

前端 未结 8 1166
别跟我提以往
别跟我提以往 2020-12-24 03:47

I\'m slowly moving from PHP5 to Python on some personal projects, and I\'m currently loving the experience. Before choosing to go down the Python route I looked at Ruby. Wha

8条回答
  •  情深已故
    2020-12-24 04:07

    In my eyes, monkey-patching is one form of AOP. The article Aspect-Oriented Design Principles: Lessons from Object-Oriented Design (PDF) gives some ideas of how SOLID and other OOP principles can be applied to AOP.

提交回复
热议问题