News for hackers. Stuff that matters.
Re:Why your F# evangelism isn't working by throwaway2037 on Wednesday May 31, 2023 @10:04PM (#36146814)
About monkeypatching, perhaps we have difference definitions. From time to time, I need to modify a Java class from a dependency that I do not own/control. I copy the decompiled class into my project with the same package name. I make changes, then run. To me, this is monkeypatching for Java. Do you agree? If not, how is it different? I would like to learn. Honestly, I discovered that Java technique years ago by accident.

Another technique: While the JVM is running with a debugger attached, it is possible to inject a new version of a class. IDEs usually make this seamless. It also works when remote debugging. Do you consider this monkeypatching also?

Re:Why your F# evangelism isn't working by bazoom42 on Thursday June 01, 2023 @10:54AM (#36151889)
Monkeypatching is programatically adding a method to a class at runtime.