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

前端 未结 8 1161
别跟我提以往
别跟我提以往 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 03:48

    My first thought is that monkey-patching violates OCP, since clients of a class should be able to expect that class to work consistently.

提交回复
热议问题