Course details

Python Design Patterns: Working with Creational Design Patterns

Python Design Patterns: Working with Creational Design Patterns


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

In this 16-video course, learners will explore the details and implementation of five commonly used creational design patterns: Singleton, Factory, Abstract Factory, Builder, and Object Pool. Key concepts covered here include how the Singleton pattern works and when to use it; how to write code for a simple implementation of the Singleton pattern; and how to implement the Singleton pattern by using a more Pythonic style and global objects in Python. Next, learn how the Factory and Abstract Factory patterns work; how to iteratively improve the design of code using refactoring; and how to design and implement the serializer with the Factory pattern. Continue by learning how to apply the Abstract Factory pattern to create a family of objects; how the Builder pattern works and how to implement a simple design for the Builder pattern; and how the Object Pool pattern works and how to implement the Object Pool pattern to limit the number of instances. Finally, learn how to improve the Object Pool pattern by making the object pool a singleton.



Expected Duration (hours)
1.8

Lesson Objectives

Python Design Patterns: Working with Creational Design Patterns

  • discover the key concepts covered in this course
  • recall how the Singleton pattern works and when to use this pattern
  • write code for a simple implementation of the Singleton pattern
  • implement the Singleton pattern using a more Pythonic style
  • implement the Singleton pattern using global objects in Python
  • recall how the Factory and Abstract Factory patterns work and when they can be used
  • implement a simple design for the Factory pattern
  • iteratively improve the design of code using refactoring
  • design and implement the serializer using the Factory pattern
  • apply the Abstract Factory pattern to create a family of objects
  • recall how the Builder pattern works and when it should be used
  • implement a simple design for the Builder pattern
  • recall how the Object Pool pattern works and when it should be used
  • implement the Object Pool pattern to limit the number of instances
  • improve the Object Pool pattern by making the object pool a singleton
  • summarize the key concepts covered in this course
  • Course Number:
    it_pydppydj_02_enus

    Expertise Level
    Expert