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 5
Singleton Versus Borg
Present the Singleton and Borg patterns. - Understand and demonstrate the Singleton and Borg patterns - Compare both patterns and discuss advantages and disadvantages of each - Show that Python modules are Singletons