• Stars
    star
    250
  • Rank 162,397 (Top 4 %)
  • Language
    Java
  • Created over 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Gang of Four patterns in Kotlin.

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)

Pattern Kotlin
Builder apply function / named constructor parameters
Decorator Extension Functions / function composition
Interpreter sealed classes
Iterator operator functions
Observer observable delegate
Prototype Data class
Singleton object declaration
Strategy functions
Template Method (top-level) functions
Visitor Pattern Matching / when

โ„น๏ธ If you import the project into intelliJ, make sure to uncheck "Create separate module per source set"!