Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Observer Pattern Tutorial: I NEVER Knew Events Were THIS Powerful ๐Ÿš€
Play lesson

Software Design in Python - Observer Pattern Tutorial: I NEVER Knew Events Were THIS Powerful ๐Ÿš€

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. This tutorial on the observer pattern is the fourth part of my series on how to write better Python code, I show you how to use events to write code that's really easy to change and extend. Events are a variant of the observer / listener design pattern. This video is inspired by a real-life example I recently encountered, where implementing an event-based approach provided a great solution to a design problem I had. Next to showing how to use events in your code, you'll also see what the effect is on the cohesion and coupling of the functions you write. GitHub repository: https://github.com/arjancodes/betterpython. ๐ŸŽ“ 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 1:24 Explaining the code example 3:16 Analysis 4:45 Creating a simple event handler 7:19 Moving to an event-based approach 10:40 The complete solution 12:44 The power of an event-based system 14:12 Final thoughts

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