Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Python: SOLID Principles and Top Design Patterns
Rating: 4.5 out of 5(808 ratings)
6,516 students

Python: SOLID Principles and Top Design Patterns

Learn how to improve your Python code through mastery of S.O.L.I.D principles and the Top GoF Design Patterns.
Created byPiotr Paweska
Last updated 10/2024
English

What you'll learn

  • *Master* the most important and fundamental design patterns in modern Software Engineering within the *Python* ecosystem
  • Learn and internalize the S.O.L.I.D principles of design like seasoned *Senior Developers* do.
  • Get a deep understanding of the WHAT, WHY, and HOW for those *Fundamental Design Patterns*.
  • Get a full Architectural exposition (with UML) of each pattern as well as *real-world* scenarios with hands-on coding examples for each pattern.
  • Work on and complete Object Oriented *Python* assignments that will push your understanding of those patterns deeper and more fundamentally.
  • Learn how to *identify* the *best pattern* for the given Architectural challenge.

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

13 sections60 lectures5h 51m total length
  • What are Design Patterns and why do we need them?2:12

    In this lecture you will learn as to WHAT design patterns are, and why we would need them.

    Design patterns are a crucial tool in the toolkit of a Software Engineer and we explore here why you need to become familiar with them.

    NOTE: A PDF Version of this lecture is provided here in case you would like to take hardcopy notes of the lecture content.

  • The Design Patterns Covered in This course.2:38

    In this lecture we will present to you the specific design patterns that we will cover in this course.

    These are, in our mind, the most important and fundamental of all design patterns and we will go over them in depth in subsequent lectures.

    NOTE: A PDF Version of this lecture is provided here in case you would like to take hardcopy notes of the lecture content.

  • Quick Quiz about design pattern families
  • The WHY Of Software Architecture.3:34

    Who needs Software Architecture?
    Why do we care about well designed and maintainable software? And how do we achieve SOLID Architecture? This lecture will show you why.

    NOTE: A PDF Version of this lecture is provided here in case you would like to take hardcopy notes of the lecture content.

  • Why use UML?2:45

    In this lecture we will show you why UML is very useful when working with design patterns and Software Architectures in general.

    NOTE: A PDF Version of this lecture is provided here in case you would like to take hardcopy notes of the lecture content.

  • Organized vs. Unorganized code.1:29

    Final piece of the coding-well puzzle will be explored. We will appeal to you in a visual way as to why having good and organized code matters.

    NOTE: A PDF Version of this lecture is provided here in case you would like to take hardcopy notes of the lecture content.

  • Setting Up the IDE and Python Environment5:51

    In this lecture I will show you how to setup the VS IDE environment to run the code samples in this course.

    NOTE: A PDF Version of this lecture is provided here in case you would like to take hardcopy notes of the lecture content.

  • *OPTIONAL*: UML Refresher.5:59

    This is an optional lecture that you can skip if you are very comfortable with UML diagrams. In case you want a quick and gentle refresher then by all means dive in! We will do a quick overview of Class and Sequence diagrams.

    NOTE: A PDF Version of this lecture is provided here in case you would like to take hardcopy notes of the lecture content.

Requirements

  • It is assumed that you know your way around Python. Only basic experience is required. We have a OOP refresher if you need it.
  • You should be able to run the Python code that is provided with the course. We will use Visual Studio Code as our IDE but you can use any IDE you like.
  • Access to a computer. A Mac, Windows, or a Linux based operating system is equally fine. All the tools are OS Independent.

Description

We all want to become better software developers and be able to call ourselves "Software Engineers" or "Software Architects", but to do that you first have to master a number of design patterns.

This course will put you on a track to that destination.

We will teach you how to recognize when to use specific design patterns to build complex systems in a divide-and-conquer manner so that complexity is reduced and abstracted.

But rather than learning all the design patterns out there, we have curated the most important, the top fundamental GoF Design Patterns for you.


All of that in the context of the Object Oriented Python.


We start with full understanding of the S.O.L.I.D Design Principles and how they in turn relate to those design patterns. We explain everything in the context of real-world problems as well as specific code examples.

if you need a Python OOP Refresher, we have that for you. everything from classes to interfaces and abstract classes is covered. We will also show you how to code using pygame (Python Game Platform.)

At the end of the course you will get to Architect a solution by coding John Conway's Game of Life simulation which will run on your mobile device.


Complex software systems are plagued with three major issues:

  1. Timelines are stretched as requirements change.

  2. Multiple developers have a hard time coordinating their efforts.

  3. Code redundancy.

This in turn creates issues with maintenance and overall flexibility for adding new features. In general this means poorly designed systems that are hard to maintain and are not adaptable.

One answer to all the above problems is having a proper design and architecture. Think of a skyscraper being built. There is always a high-level blueprint. This blueprint is used to show everybody involved (from architects to supply chain to construction workers to machinery scheduling etc…) what is being worked on.


That way, everybody understands and follows the same vision.


A blueprint has a number of commonly understood elements which repeat themselves across many projects. For example all buildings need electrical wiring and plumbing, they might need elevators, and cooling systems, and underground parking lots, and of course stairs. They also usually are connected to the electrical grid and water supply as well as… roads.

All these common elements follow certain standards that have been improved over many many years and across many many projects. They are well understood and can be used almost like recipes.

In Software Engineering we also have a set of elements that repeat themselves across many projects. For example all software applications need to create objects, they need to communicate state change across those objects, they need to be able traverse over collections of those objects. In other words, if you want to be a better developer then you need to become proficient in those elements that have been time-tested. In the Software Engineering world these elements are known as “Design Patterns”


This course will teach students how to recognize when to use specific design patterns to build complex systems in a divide-and-conquer manner so that complexity is reduced and abstracted.

This will help you to design projects in an Architectural manner before any major development happens and can be used to shorten development time and reduce maintenance costs.


Design patterns are important because they are time-tested recipes or solutions to well-known software engineering problems. When creating software applications certain problems recur in a pretty predictable fashion so rather than ‘reinvent’ the wheel we will have an assortment of, if you will, wheels to choose from.

We will teach you this in a slightly different manner than you probably have been taught before. We will take a practical approach (i.e. specific examples) but the power of Design Patterns comes from their ‘concept’ and we will teach you the concept of those design patterns so that you are fully able to change them and modify them to your needs. In addition we will look at how to combine all those patterns into something greater: an architecture.


A well designed Architecture is this magical thing where the whole is greater than the sum of its parts.

This is what we will strive to teach you.

Who this course is for:

  • *Python* developers who want to learn to Design, Architect, and ultimately develop *better code*.
  • Developers who want to get a deep understanding of what makes GREAT *Software Architecture*.