A Design Pattern Trivialized by Kotlin: Singleton
This article describes the widely used design pattern Singleton, and shows how it is trivialized in Kotlin – there is a simple way to implement this pattern correctly, and with less effort.
This article describes the widely used design pattern Singleton, and shows how it is trivialized in Kotlin – there is a simple way to implement this pattern correctly, and with less effort.
The Decorator Pattern (a.k.a. wrapper) belongs to the catalogue of structural patterns as defined in the book Design Patterns by GoF.
Some notes taken during following the “Creating Asynchronous Methods” tutorial.