Kotlin Code Smell 7 - Long Chains Of Collaborations
TL;DR: Long chains of collaborations generate coupling and ripple effect, where any change in the chain breaks the code.
Problems
Coupling
Break encapsulation
Solutions
Create intermediate methods.
Consider the Law of Demeter.
Create higher-l...
yonatankarp.com2 min read