Kotlin Code Smell 32 - Repeated Code
Problem
Code Duplication
Maintainability
Don't Repeat Yourself
Solution
Find repeated patterns (not repeated code).
Create an abstraction.
Parametrize abstraction calls.
Use composition and avoid inheritance.
Unit test the new abstraction.
...
yonatankarp.com2 min read