Skip to Main Content
Kotlin Design Patterns and Best Practices - Third Edition
book

Kotlin Design Patterns and Best Practices - Third Edition

by Alexey Soshin
April 2024
Intermediate to advanced content levelIntermediate to advanced
474 pages
9h 39m
English
Packt Publishing
Content preview from Kotlin Design Patterns and Best Practices - Third Edition

3

Understanding Structural Patterns

This chapter examines structural patterns in Kotlin, focusing on how objects are composed and arranged within larger structures. These patterns aim to simplify the interactions and relationships between different components of our system.

We will discuss how to enhance the functionality of our objects without creating complex class hierarchies. Additionally, we’ll explore methods to adapt to future changes and rectify design decisions made in the past. Furthermore, we’ll examine techniques for reducing the memory footprint of our programs.

Throughout this chapter, we will cover the following patterns:

  • Decorator
  • Adapter
  • Bridge
  • Composite
  • Facade
  • Flyweight
  • Proxy

By the end of this chapter, you will have a better ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Kotlin Design Patterns and Best Practices - Second Edition

Kotlin Design Patterns and Best Practices - Second Edition

Alexey Soshin
Programming Kotlin

Programming Kotlin

Venkat Subramaniam
Kotlin in Action

Kotlin in Action

Svetlana Isakova, Dmitry Jemerov

Publisher Resources

ISBN: 9781805127765Supplemental Content