Code-Smell is badly structured source code, which however works. In the figurative sense, it is bad smelling code.
If the structure of a software is difficult to understand, errors usually creep in faster during adaptations. There are different types of code smells. These include, for example:
- Code Duplicates
- Too long methods
- Badly commented code
- Too extensive parameter lists
- Temporary fields
The goal of refactoring is to replace or eliminate such code smells where possible. So that the maintainability of a software can be significantly improved. Because only well maintained source code will continue to run well and be sustainable in the future.

However, if source code is used several times within a software in identical form, it is called a code duplicate or software clone. Code duplicates can occur for various reasons:
- Code is automatically generated by e.g. Model Driven Development
- Developers copy code for faster programming
- Functioning code is reused to minimize errors
- Duplication of code is used for further use after adaptation
By reducing code duplicates, the amount of source code can be reduced. This improves the structure of the software and makes it easier to implement adjustments or bug fixes in the future. Also the readability of the source code increases. Thanks to the reduced code volume, the memory requirement is minimized.

Cloud View
List View