Java Design Patterns: Behavioral Part 1

Java Design Patterns: Behavioral Part 1

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 1h 16m | 205 MB

Design patterns provide a kind of template for writing quality code. Knowing which design pattern to use in which scenario can be challenging, but will make you a better Java programmer. This course takes a deep dive into behavioral patterns, which can help you abstract the complex flow of applications and focus on interactions between objects. Instructor Bethan Palmer shows how to use the six most popular behavioral design patterns—Chain of Responsibility, Command, Interpreter, Iterator, Mediator, and Memento—to write better, more maintainable Java code. She provides example use cases, complete with implementation instructions and tips for avoiding the unique challenges posed by each pattern. Every chapter contains a challenge to practice your new skills. By the end of the course, you’ll be armed with the knowledge necessary to implement behavioral design patterns in your own Java projects.

Topics include:

  • Passing requests to objects with Chain of Responsibility
  • Encapsulating a request as an object with Command
  • Interpreting sentences in a language with Interpreter
  • Accessing objects in order with Iterator
  • Defining how objects work together with Mediator
  • Capturing and restoring an object’s state with Memento
Table of Contents

Introduction
1 Improve code quality with behavioral design patterns
2 What you should know

Behavioral Design Patterns
3 What is a design pattern
4 Behavioral design patterns

The Chain of Responsibility Pattern
5 Understanding the Chain of Responsibility pattern
6 Implementing a successor chain
7 Making a request
8 Challenge The Chain of Responsibility pattern
9 Solution The Chain of Responsibility pattern

The Command Pattern
10 Understanding the Command pattern
11 Creating the components for a Command pattern
12 Implementing a complete Command pattern
13 Challenge The Command pattern
14 Solution The Command pattern

The Interpreter Pattern
15 Understanding the Interpreter pattern
16 Creating an interpreter for a language
17 Interpreting a variable
18 Challenge The Interpreter pattern
19 Solution The Interpreter pattern

The Iterator Pattern
20 Understanding the Iterator pattern
21 Creating an iterable
22 Creating an iterator
23 Challenge The Iterator pattern
24 Solution The Iterator pattern

The Mediator Pattern
25 Understanding the Mediator pattern
26 Avoiding tight coupling between objects
27 Creating a mediator object
28 Challenge The Mediator pattern
29 Solution The Mediator pattern

The Memento Pattern
30 Understanding the Memento pattern
31 Restoring an objects state
32 Challenge The Memento pattern
33 Solution The Memento pattern

Conclusion
34 Next steps