Yonatan Karp-RudinProyonatankarp.com·Aug 23, 2023Kotlin Code Smell 32 - Repeated CodeProblem 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. ...61 readsKotlin Code Smellsclean codeAdd a thoughtful commentNo comments yetBe the first to start the conversation.