Kotlin Design Patterns

Video description

Uncover essential design patterns with Kotlin

About This Video

  • Implement classical designs via creational, structural, and behavioral patterns and get insights into the advantages and possibilities they bring
  • Use a wide range of design patterns to polish your Android code and write cleaner code effortlessly
  • A practical course comprising small and straightforward examples in a friendly style to help you write high-quality programs and create customized applications

In Detail

Over the years, programmers have run into pretty much the same problems time and time again; not every problem is entirely unique. Therefore, over time programmers applied varying solutions to these problems, and this is how design patterns were born.

This course will walk you through some centrally significant design patterns so that you can easily resolve programming issues encountered in your day-to-day tasks. You'll learn these patterns in one of the most modern languages: Kotlin! We cover the three major areas in design patterns: creational patterns, structural patterns, and behavioral patterns. We also implement one structural pattern—Decorators—that plays an important role in adding functionalities to your programs. We take a look at different kinds of problem and implement the required patterns while avoiding common pitfalls. We also supply useful tips and tricks to use design patterns more effectively.

By the end of the course, you will be confident about using varying types of design patterns to solve common design problems.

Please note that a basic familiarity with Kotlin is desirable to get the most out of this course, along with some experience working with Android Studio.

Publisher resources

Download Example Code

Table of contents

  1. Chapter 1 : Introduction to Design Patterns
    1. The Course Overview 00:05:08
    2. Definition and Course Contents 00:03:50
    3. Solving Problems with Design Patterns 00:04:46
    4. Procuring Design Patterns 00:03:41
    5. Looking at Different Types of Design Patterns 00:05:40
  2. Chapter 2 : Using the Builder Pattern for Object Creation
    1. Dealing with Complex Objects 00:04:59
    2. Building Complex Object Efficiently 00:05:08
    3. The Builder Pattern with Kotlin 00:07:50
  3. Chapter 3 : Working with Singleton Pattern
    1. Dealing with Single Instance Objects 00:04:45
    2. Issues That May Arise 00:04:00
    3. When Does One Use the Singleton Pattern? 00:04:33
    4. Implementing the Singleton Pattern with Kotlin 00:04:36
  4. Chapter 4 : Using the Factory Pattern
    1. Many Subclasses, Many Problems 00:03:13
    2. Outsourcing to a Factory 00:05:25
    3. Implementing the Factory Pattern with Kotlin 00:05:03
  5. Chapter 5 : The Decorator Pattern for Adding Functionality
    1. When to Extend Functionality 00:03:05
    2. Problems While Adding Functionality 00:04:33
    3. Adding Functionality to Existing Classes 00:04:53
    4. Implementing the Decorator Pattern with Kotlin 00:04:32
  6. Chapter 6 : Applying the Chain of Responsibility Pattern
    1. The 'If-Else' Nightmare 00:05:38
    2. Doing the Right Thing: When to Use the Chain of Responsibility 00:05:22
    3. Implementing the Chain of Responsibility Pattern with Kotlin 00:05:50
  7. Chapter 7 : Implementing the Observer Pattern
    1. FOMO (Fear of Missing Out) 00:04:11
    2. Common Issues in Updating Objects 00:03:54
    3. Stay Notified and Updated 00:04:47
    4. Implementing the Observer Pattern with Kotlin 00:05:25
  8. Chapter 8 : Tips on Design Patterns
    1. Tips on Using Design Patterns in Your Code 00:05:08
    2. Further Reading 00:04:13
    3. Quick Recap/Summary 00:08:05

Product information

  • Title: Kotlin Design Patterns
  • Author(s): Yusuf Saber
  • Release date: January 2020
  • Publisher(s): Packt Publishing
  • ISBN: 9781839213021