Book Image

Design Patterns and SOLID Principles with Java [Video]

By : Róbert Kohányi
Book Image

Design Patterns and SOLID Principles with Java [Video]

By: Róbert Kohányi

Overview of this book

This course will guide you through the whys and hows of important design patterns using SOLID principles and, more importantly, will help you recognize opportunities to apply these; its focus is on real-world problems and down-to-earth explanations to get you started quickly. The goal of the course is not to have you breeze through every design pattern in existence in a few minutes with oversimplified examples. Instead, you will learn selected design patterns in an in-depth way. During the course, you'll also familiarize yourself with the major aspects of SOLID design and writing clean code, as these concepts and applying design patterns should go hand-in-hand. By the end of the course, you will be able to identify (and confidently apply) design patterns in your own applications and be empowered to make your design choices using complex examples. All the code and supporting files are on GitHub at: https://github.com/PacktPublishing/Design-Patterns-and-SOLID-Principles-with-Java
Table of Contents (6 chapters)
Chapter 1
Design Patterns Quickstart with Template Methods
Content Locked
Section 6
Favoring Composition over Inheritance
Design patterns sometimes can be double-edged swords in the hands of the untrained. Their use has to be justified, and to do this properly, one has to understand their positive and negative sides. In this video, we'll focus on pitfalls to avoid when using the Template Method pattern, which relies heavily on inheritance.