Lucas Fugisawa on Kotlin
Lucas Fugisawa on Kotlin
  • Articles
  • Newsletter
  • LinkedIn
  • Kotlin Devs Brasil
  • E-mail

February 2024

Blog

Kotlin Design Patterns: Simplifying the Observer Pattern

The Observer Pattern is a behavioral design pattern where an object (the subject) maintains a list of its dependents (observers), and notifies them automatically of any state changes. This pattern ensures that multiple objects are notified when certain state changes occur. It’s widely used in implementing distributed event handling systems. Read more…

By Lucas Fugisawa, 1 yearFebruary 26, 2024 ago
Blog

Kotlin Design Patterns: Simplifying the Proxy Pattern

The Proxy Pattern is a structural design pattern in object-oriented programming. It provides a surrogate or placeholder for another object to control access to it. This pattern creates a ‘proxy’ object that acts as an intermediary between the client and the real object. This pattern is useful when direct access Read more…

By Lucas Fugisawa, 1 yearFebruary 20, 2024 ago
Blog

Kotlin Design Patterns: Simplifying the Decorator Pattern

The Decorator Pattern is a flexible alternative to subclassing for extending functionality. It allows behavior to be added to individual objects without affecting the other objects from the same class. It is particularly helpful when changes are needed during runtime. Also, it’s helpful when subclassing would result in an exponential Read more…

By Lucas Fugisawa, 1 yearFebruary 15, 2024 ago
Blog

Kotlin Design Patterns: Simplifying the Prototype Pattern

We use the Prototype Pattern when creating new instances from scratch is more expensive than copying existing ones. So, instead of instantiating new objects, you can have a prototype from which clones/copies are made. Traditional approach in Java In this Java example, GraphicElement represents a complex graphic element with complex initialization logic, Read more…

By Lucas Fugisawa, 1 yearFebruary 12, 2024 ago
Blog

Kotlin Design Patterns: Simplifying the Builder Pattern

The Builder pattern is a design pattern used to construct complex objects step by step. It separates the construction of an object from its representation, allowing the same construction process to create different types. When creating complex objects, direct construction using constructors might involve many parameters, leading to unclear code Read more…

By Lucas Fugisawa, 1 yearFebruary 6, 2024 ago
Recent Posts
  • Kotlin + gRPC: Streaming, Deadlines, and Structured Error Handling
  • Kotlin + gRPC: Nesting, Composition, Validations, and Idiomatic Builder DSL
  • Kotlin + gRPC: Enhance Protobuf schema design with Optional, Repeated, Maps, Enums, Oneof and backwards compatibility
  • Kotlin + gRPC: Build your first service in four steps
  • Scope Isolation in Kotlin DSLs with @DslMarker
Recent Comments
No comments to show.
Archives
  • April 2025
  • February 2025
  • March 2024
  • February 2024
  • January 2024
  • December 2023
Categories
  • Blog
Hestia | Developed by ThemeIsle