Home

Awesome

pull requests welcome

Gang of Four patterns in Kotlin.

Inspired by https://github.com/mariofusco/from-gof-to-lambda

Blog posts:

Watch me talk about it: https://youtu.be/xxGCVVtMVn4 (2018 @code.talks hamburg)

PatternKotlin
Builderapply function / named constructor parameters
DecoratorExtension Functions / function composition
Interpretersealed classes
Iteratoroperator functions
Observerobservable delegate
PrototypeData class
Singletonobject declaration
Strategyfunctions
Template Method(top-level) functions
VisitorPattern Matching / when

ℹ️ If you import the project into intelliJ, make sure to uncheck "Create separate module per source set"!