Common Code Patterns - First scenario - Code already duplicated
Nota
- Problems when fixing wrong code - This is a serious problem when talking about security fixes. We must identify all vunerable implementations and fix all of them. Sometimes this is a complicated task.
- Feature adding - Some times a new feature is added in one of the implementations of the same task, and other implementations can't take benefits of this new feature.
- Difficulties to reflect system changes in all implementations - When there is a system-wide change (like an API change), we must fix all implementations. This is not difficult when the API change breaks the compilation, but imagine if this change only causes the program to SEGFAULT (without breaking compilation), it will take much time to find all the wrong code.
Criado em Dom 15 Ago 2004 por Gustavo P. Boiko and Helio C. de Castro com o KPresenter