duplicatedcode

noun
UK /ˈdjuːplɪkeɪtɪd kəʊd/
US /ˈduːplɪkeɪtɪd koʊd/

Code that is written more than once in a program.

The teacher showed us how duplicated code can make a program harder to fix.


OTHER MEANINGS

2. The same instructions appearing in several places in a file.

We found duplicated code in two different functions.

3. A copy of a block of text or commands that was pasted again.

The duplicated code made the file twice as long.

4. Code that repeats a task instead of using a shared helper.

She removed the duplicated code by creating one reusable method.