Course Information
- Available
- *The delivery and distribution of the certificate are subject to the policies and arrangements of the course provider.
Course Overview
Discover the modern implementation of design patterns in Python
Course Overview
This course provides a comprehensive overview of Design Patterns in Python from a practical perspective. This course in particular covers patterns with the use of:
The latest versions of the Python programming language
Use of modern programming approaches: dependency injection, reactive programming and more
Use of modern developer tools such as JetBrains PyCharm
Discussions of pattern variations and alternative approaches
This course provides an overview of all the Gang of Four (GoF) design patterns as outlined in their seminal book, together with modern-day variations, adjustments, discussions of intrinsic use of patterns in the language.
What are Design Patterns?
Design Patterns are reusable solutions to common programming problems. They were popularized with the 1994 book Design Patterns: Elements of Reusable Object-Oriented Software by Erich Gamma, John Vlissides, Ralph Johnson and Richard Helm (who are commonly known as a Gang of Four, hence the GoF acronym).
The original book was written using C++ and Smalltalk as examples, but since then, design patterns have been adapted to every programming language imaginable: C#, Java, Python and even programming languages that aren't strictly object-oriented, such as JavaScript.
The appeal of design patterns is immortal: we see them in libraries, some of them are intrinsic in programming languages, and you probably use them on a daily basis even if you don't realize they are there.
What Patterns Does This Course Cover?
This course covers all the GoF design patterns. In fact, here's the full list of what is covered:
SOLID Design Principles: Single Responsibility Principle, Open-Closed Principle, Liskov Substitution Principle, Interface Segregation Principle and Dependency Inversion Principle
Creational Design Patterns: Builder, Factories (Factory Method and Abstract Factory), Prototype and Singleton
Structrural Design Patterns: Adapter, Bridge, Composite, Decorator, Façade, Flyweight and Proxy
Behavioral Design Patterns: Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method and Visitor
Who Is the Course For?
This course is for Python developers who want to see not just textbook examples of design patterns, but also the different variations and tricks that can be applied to implement design patterns in a modern way. For example, the use of decorators and metaclasses allows us to prepackage certain patterns for easy re-use.
Presentation Style
This course is presented as a (very large) series of live demonstrations being done in JetBrains PyCharm and presented using the Kinetica rendering engine. Kinetica removes the visual clutter of the IDE, making you focus on code, which is rendered perfectly, whether you are watching the course on a big screen or a mobile phone.
Most demos are single-file, so you can download the file attached to the lesson and run it in PyCharm, IDLE or another IDE of your choice.
This course does not use UML class diagrams; all of demos are done via live coding.
Course Content
- 25 section(s)
- 107 lecture(s)
- Section 1 Introduction
- Section 2 The SOLID Design Principles
- Section 3 Builder
- Section 4 Factories
- Section 5 Prototype
- Section 6 Singleton
- Section 7 Adapter
- Section 8 Bridge
- Section 9 Composite
- Section 10 Decorator
- Section 11 Façade
- Section 12 Flyweight
- Section 13 Proxy
- Section 14 Chain of Responsibility
- Section 15 Command
- Section 16 Interpreter
- Section 17 Iterator
- Section 18 Mediator
- Section 19 Memento
- Section 20 Observer
- Section 21 State
- Section 22 Strategy
- Section 23 Template Method
- Section 24 Visitor
- Section 25 Summary and Extras
What You’ll Learn
- Recognize and apply design patterns
- Refactor existing designs to use design patterns
- Reason about applicability and usability of design patterns
Skills covered in this course
Reviews
-
BBoburbek Bekdurdiev
It is not a bad course, high level, good coding examples, there are things to learn. But, in my humble opinion, the auther lacks some real life examples, there are sections where the author directly dives into coding example without properly explaining the analogy of the pattern. So, the student will have to go back and forth to Youtube to grab the analogy. I would suggest the author to add a short video to each section where he briefly explains what is that design pattern that he is teaching, and why it is needed, then coding examples follow.
-
AAnton Bilal
Excellent
-
CChristian Strate
Fontsize of the Code is too big. Not being able to see more than 16 loc at a time isn't as helpful. The "Design Pattens in Python" course unfortunately is of way less quality than the "Design Patterns in Modern C++" course. This is true for precision in wording, complexity of patterns, complexity of examples as well as the quality of provided solutions. Certain best practices are not used - like the usage of "with". And I get that the course is not supposed to teach you proper error handling but using code examples that are practically straight up security vulnerabilities (for example an open oracle attack vector) is not great. Wording of coding exercises is ambiguous multiple times which makes it more of an trial and error approach on what the TC call looks like rather than implementing a pretty solution. On top of that the expected results of coding exercises are partially utterly garbage and don't make much sense. At least not from a perspective of the creation of nice designs or properly distinguishable scenarios. This wouldn't be as much of a problem if the task was properly phrased instead of ambiguous gibberish. I had multiple occasions in which I double checked my solution, checked the testcases and was like .... "The expected result of that testcase is wrong!" just to proceed check their provided solution and realized that the task description was, once again, phrased terribly. The programming exercises are very limited and don't always expect you to implement the entirety of the patterns, sometimes it doesn't expect you to implement the pattern at all, but only to use it (Command, Visitor).
-
SSebastian Sarasti
The code exercises do not have enough explanation of what is the final goal. You need to guess what is the author intent.