Forbids classes with too high coupling #1242
Labels
level:advanced
Needs a lot of care
question
Further information is requested
rule request
Adding a new rule
Milestone
Rule request
Thesis
Coupling is a very important concept in programming.
Currently, we don't enforce any rules about cohesion and coupling. But, we totally need to!
And while you can use https://github.com/mschwager/cohesion to measure cohesion, there's no tool to measure coupling.
I don't think that cohesion is important. Because the best class in my opinion is
@dataclass
:But, coupling is the whole other beast! High coupling makes refactoring very hard. Compare these two samples:
And:
The second one is way better.
Problems:
The text was updated successfully, but these errors were encountered: