Lecture
The garbage dumpers are something useless and superfluous that could be eliminated by making the code cleaner, more efficient and easier to understand.
Comments
The method contains many explanatory comments.
Code duplication
The two code snippets look almost the same.
Lazy class
Understanding and supporting classes always takes time and money. Therefore, if a class does not do enough to give it enough attention, it must be destroyed.
Data class
Data classes are classes that contain only fields and the simplest methods for accessing them (getters and setters). These are just data containers used by other classes. These classes do not contain any additional functionality and cannot independently work with the data they own.
Dead code
A variable, parameter, field, method, or class is no longer used (most often because it is outdated).
Theoretical community
A class, method, field, or parameter is not used.
Comments
To leave a comment
Refactoring theory
Terms: Refactoring theory