Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
The Factory Pattern in Python // Separate Creation From Use
Play lesson

Software Design in Python - The Factory Pattern in Python // Separate Creation From Use

4.0 (1)
31 learners

What you'll learn

This course includes

  • 31.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide. In this video, I explain what the Factory pattern (or: Abstract Factory) is, and how to use it in Python. One of the greatest things about this pattern is that it allows you to separate creation from use. It's one of my most-used patterns. The code I worked on in this video is available here: https://github.com/ArjanCodes/2021-factory-pattern. 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses. 💬 Join my Discord server: https://discord.arjan.codes. ⌨️ Keyboard I’m using: https://amzn.to/49YM97v. 🔖 Chapters: 0:00 Intro 0:37 Explaining the example 3:25 Analysis of the code 4:46 What is the Factory pattern? 5:31 Creating the abstract ExporterFactory 7:06 Creating the concrete factories 8:47 Revising the main() function 10:51 Running the new version of the code 11:43 Analysis of the new version 12:11 Bonus: inject the factory as a dependency 13:28 When to (not) use the factory pattern #arjancodes #softwaredesign #python

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere