code cloning
[/koʊd ˈkloʊnɪŋ/]
nounpl: code clonings
clonagem de código
1. A software development practice where identical or nearly identical blocks of code are duplicated in multiple locations within a codebase instead of being refactored into a reusable function or module
The team discovered extensive code cloning in the legacy system, with the same validation logic repeated in dozens of files.
A equipe descobriu clonagem de código extensa no sistema legado, com a mesma lógica de validação repetida em dezenas de arquivos.
2. The process of copying and pasting code segments to implement similar functionality in different parts of an application
Code cloning is considered a code smell that can lead to maintenance nightmares when bugs need to be fixed in multiple places.
A clonagem de código é considerada um sintoma de código ruim que pode levar a pesadelos de manutenção quando bugs precisam ser corrigidos em vários lugares.
Code cloning is widely recognized in both American and Brazilian software development communities as a bad practice that violates the DRY (Don't Repeat Yourself) principle. It is a common concern in code reviews and is taught as an anti-pattern in software engineering courses at universities in both countries. Many development teams use static analysis tools to detect and measure code cloning to maintain code quality standards.
Look up more words on Fala2Me
The free English-Portuguese dictionary with real Brazilian accents, NYC slang, conjugator and more
Open Fala2Me →