monkey patching
[/ˈmʌŋki ˈpætʃɪŋ/]
noun
remendação dinâmica
1. A programming technique where code is modified at runtime by changing or extending existing classes, functions, or modules without altering their original source code, often used in dynamic languages like Python and Ruby.
The developer used monkey patching to add new functionality to the library without waiting for an official update.
O desenvolvedor usou remendação dinâmica para adicionar novas funcionalidades à biblioteca sem esperar por uma atualização oficial.
2. The practice of dynamically replacing or augmenting methods or attributes of classes or modules at runtime, typically considered a temporary workaround or hack.
Monkey patching can be risky because it may cause unexpected behavior in other parts of the application.
A remendação dinâmica pode ser arriscada porque pode causar comportamento inesperado em outras partes da aplicação.
Monkey patching is a common practice in the Python and Ruby communities, though often debated for code maintainability. The term originated in the programming world and is used universally across both Brazilian and American tech communities, typically in English form even in Portuguese-speaking tech discussions. It reflects a pragmatic but sometimes controversial approach to software development, particularly in agile environments where rapid prototyping is valued.
Look up more words on Fala2Me
The free English-Portuguese dictionary with real Brazilian accents, NYC slang, conjugator and more
Open Fala2Me →