Skip to content
0:00 / 0:00

#factorypattern#abstractfactory#gangoffour

Applying the Factory Method and Abstract Factory Patterns in Kotlin

Dave Leeds

16K subscribers • 19 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Dave Leeds

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-up

Why it's here

1 person recommends this

What people say. Recommended as a clear guide to implementing and modernizing classic Gang of Four design patterns in Kotlin.

u/TypeProjectionin r/Kotlin • Recommends

Factory Method and Abstract Factory patterns in Kotlin