You get a bonus - 1 coin for daily activity. Now you have 1 coin

Code Smell

Lecture



All smells from this group lead to excessive cohesion between classes, or show what happens if tight cohesion is replaced by constant delegation.

Envious features

The method accesses the data of another object more often than its own data.

Inappropriate intimacy

One class uses utility fields and methods of another class.

Call chain

You see in the code a call chain like this $ a-> b () -> c () -> d ()

Mediator

If a class performs one action - delegates work to another class - it is worth considering why it exists at all.

created: 2019-01-25
updated: 2021-03-13
132265



Rating 9 of 10. count vote: 2
Are you satisfied?:



Comments


To leave a comment
If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Refactoring theory

Terms: Refactoring theory