Kotlin Code Smell 6 - Boolean Variables
TL;DR: Avoid using boolean variables, as they lead to the use of if statements. Instead, create polymorphic states.
Problems
Lack of extensibility
Comparison issues in some languages
Solutions
If a boolean variable maps to a real-world entity, ...
yonatankarp.com1 min read