Re:Python overtakes Java to become the second-most popular p...
by iainctduncan on Thursday November 05, 2020 @12:43PM
(#25000208)
I actually found it was untraceable side effects from imports and ability to monkey patch that was worse. Related to the typing, but not totally the same. I would pick something like Clojure or F# now to control that. Side effects and coupling.
Re:Python overtakes Java to become the second-most popular p...
by xapata on Thursday November 05, 2020 @12:53PM
(#25000316)
You can patch by linking a different library in C. What's the difference? I suppose it's easier in Python to patch. Seems like a good thing to me.
Re:Python overtakes Java to become the second-most popular p...
by chaostheory on Thursday November 05, 2020 @12:50PM
(#25000281)
Didn't realize that monkey patching wasn't only limited to Ruby.
Re:Python overtakes Java to become the second-most popular p...
by bsder on Thursday November 05, 2020 @03:58PM
(#25001897)
It tends to be frowned on in Python. Mostly because some fairly popular projects did it first, and if you monkey patch over them, you break them.
Consequently, there was a big disincentive to monkeypatching.
Some people may argue, "but documentation would make this an non-issue". Guarantees built-in to the platform itself are more reliable than human aspirations, or automatic memory management as a feature wouldn't have gotten popular.