Thursday, July 9, 2020

What is monkey patching?


 

What is monkey patching

Monkey patching is a process of forcing a function into a function of a particular class in real run time. It is the process of applying the patch in a dynamic way to bring a change in the class. 

It can be done by creating a function which is new and not a part of the class but we can force the function into any class with the help of monkey patch.

It is used as a quick fix to alter the issues in the code without creating any new class at run time. Monkey patching is done by creating patches to add dynamic attributes in a class at run time.

SMART SUBU

Author & Editor

Prof. (Dr) Subroto Chowdhury is a Data science and Technology Enthusiast, Independent Research Practitioner, Education Change Motivator, Ethical Investment Advisor and Analytics Consultant.Analytical Exposition interests him as an instrumentation process to make objective understanding of the complex Phenomenon and other decisions. He believes in making education more affordable, easy and pragmatic.

To Know More Click Here