u/TypeProjectionin r/Kotlin • Recommends
Factory Method and Abstract Factory patterns in Kotlin
#factorypattern#abstractfactory#gangoffour
16K subscribers • 19 videos on Hallway
Intermediate. Assumes working knowledge.
11K views2 years ago1 recommendation
Programming languagesSoftware designKotlinDesign patternsRefactoring and legacy code
Dave Leeds demonstrates how to apply and modernize the classic Factory Method and Abstract Factory design patterns using Kotlin features.
Make object creation more flexible with the Factory Method and Abstract Factory design patterns! Today, we'll look at code that could benefit from these patterns, we'll apply a traditional version of them from the classic Gang of Four Design Patterns book, and then we'll see how we can modernize them with Kotlin's language features. ✨ New to Kotlin? Start your journey here: typealias.com/start/ ... or pick up the new Leanpub Edition for offline access and more! book.typealias.com/ 🚀 Get the inside scoop on everything I'm working on - join my new email newsletter! Sign up here: newsletter.typealias.com/ 📺 Watch Episode #2 of the TypeAlias Show Livestream: youtube.com/live/fcul4vIbqiI 📚 Chapters Introduction Example Code Refactoring to a Factory Method Pattern Refactoring to an Abstract Factory Pattern Modernizing the Patterns with Kotlin Wrap-upWhat people say. Recommended as a clear guide to implementing and modernizing classic Gang of Four design patterns in Kotlin.
u/TypeProjectionin r/Kotlin • Recommends