Need help with gof-in-kotlin?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

lmller
219 Stars 23 Forks 28 Commits 0 Opened issues

Description

Gang of Four patterns in Kotlin.

Services available

!
?

Need anything else?

Contributors list

# 372,734
Spring
openapi
restapi
Kotlin
15 commits
# 185,047
Java
instagr...
Android
Kotlin
1 commit

pull requests welcome

Gang of Four patterns in Kotlin.

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

Blog posts: - Part 1: https://dev.to/lovis/gang-of-four-patterns-in-kotlin - Part 2: https://dev.to/lovis/gang-of-four-patterns-in-kotlin---slight-return

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"!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.