functionrepetitionrather
Functionrepetitionrather is a coined term in software design describing a stance that favors repeating small blocks of code rather than factoring them into separate functions or modules. The term is not part of formal methodology, but appears in informal discussions about when duplication may be preferable to abstraction. It sits in contrast to the DRY (Don’t Repeat Yourself) principle and to refactoring practices that emphasize reuse.
Its core idea is that, in certain contexts, duplicating a short sequence of statements can improve readability,
Guidelines associated with functionrepetitionrather include: use repetition when the duplicated blocks are extremely small and unlikely
Example: in a short script, two conditional branches perform the same data transformation inline rather than
Relation to other concepts: functionrepetitionrather is often discussed alongside WET (Write Everything Twice) as an opposite