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

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

    Monkey-patching is just plain wrong, IMHO. I've not come across the open/closed principle you mention before, but it's a principle I've long held myself, I agree with it 100%. I think of monkey-patching as a code-smell on a larger scale, a coding-philosophy-smell, as it were.

提交回复
热议问题