xakep666 / monkey Goto Github PK
View Code? Open in Web Editor NEWLibrary for monkey-patching functions in Go
License: MIT License
Library for monkey-patching functions in Go
License: MIT License
I read the code, finding that it actually copy the executable file and modify it to instrument. As the author have stated, it has pros and cons.
Now, the same idea, replacing on the fly, inspired another project that also implements mocking. That is the xgo progject: https://github.com/xhd2015/xgo.
The difference is, xgo replaces source file instead of binary file. So it is totally a native go solution.
Maybe we can discuss more here.
Monkey patching is a total evil in programming (except too specific cases, which are still not an argument)... For god sake, why did you publish that?
Also, looks like you didn't read original monkeypatching library license:
Don't use it.
Even author answered, why monkeypatching must not be exist in this world
I also must note you, that publishing projects in opensource is awesome thing, more opensourced projects โ better life for developers. But it's better to keep code quality in opensource projects, cause if we won't look on code quality, opensource will become an evil too. Which is unacceptable/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.