Book Image

Python Design Patterns [Video]

By : James Cross
Book Image

Python Design Patterns [Video]

By: James Cross

Overview of this book

A knowledge of design patterns enables developers to improve their codebase, promotes code reuse, and makes the architecture more robust. This course focuses on showing you the practical aspects of smarter coding in Python. We start off by easing you into the world of design patterns and helping you brush up on your OOP skills. From there, you'll explore the most widely used patterns and create objects in a manner best suited to the situation. Then we take you through some patterns that will help you identify simple ways to realize relationships between entities. Next, we show you how to encapsulate behavior in an object and delegate requests to it, before we up the ante and delve into some advanced patterns. Last but not least, we'll make you aware of design styles that will hamper your development, rather than improving it. With this course, thanks to patterns, you will be well equipped to craft faster, cleaner, and smarter applications.
Table of Contents (6 chapters)
Chapter 2
Producing with Factories
Content Locked
Section 4
Prototype
Present the Prototype pattern. - Understand the intention of the Prototype pattern - Demonstrate how it can be used to avoid initialization costs - Demonstrate how it can be used to copy and modify an instance