monkey-patching

  • It replacement of attributes, methods of classes in runtime
  • It replacement of modules in runtime
  • It replacement or extending of external libraries

Examples

  • In JavaScript you can use monkey-patching for unit testing
    • this ability is provided by libraries like Rewire

Subscribe to the newsletter

Get a once-per-week email with my latest content. By subscribing to this newsletter you will also be the first to receive last updates of my eBooks and courses.

0 members

Comments 💬