본문 바로가기
IT개발/Kotlin

Kotlin design pattern

by xground 2020. 1. 13.
반응형

https://www.raywenderlich.com/470-common-design-patterns-for-android-with-kotlin

 

Common Design Patterns for Android with Kotlin

Discover how to make your Android code cleaner and easier to understand with these common design patterns for Android apps. Future you will appreciate it!

www.raywenderlich.com

 

생성

- Builder

- Dependency Injection

- Singleton

 

구조

- Adapter

- Facade

 

행위

- Command

- Observer

- Model View Controller

- Model View ViewModel

- Clean Architecture

 

 

Builder

https://asfirstalways.tistory.com/350

 

[DP] 2. 빌더 패턴(Builder Pattern)

#2. 빌더 패턴(Builder pattern) 인스턴스를 생성할 때, 생성자(Constructor)만을 통해서 생성하는데는 어려움이 있다. 빌더 패턴은 이 문제를 기반으로 고안된 패턴 중 하나이다. 예를 들면, 생성자 인자로 너무..

asfirstalways.tistory.com

 

반응형

'IT개발 > Kotlin' 카테고리의 다른 글

Kotlin의 null 처리  (0) 2020.01.09
코루틴  (0) 2020.01.07
Kotlin 유용한 함수  (0) 2019.12.19

댓글