Understanding Python: Structural Pattern Matching

preview_player
Показать описание
Are you tired of nested if-else statements that make your code look like a tangled mess? Structural pattern matching offers a clean, efficient alternative that will save you time and headaches.

In this video, we introduce the concept of structural pattern matching, show how to match against sequences with a basic CLI example, demonstrate the challenges when matching class instances, and finally wrap up with my favorite part, handling structured data.

As always, please comment below if you have any questions or suggestions for future videos.

Chapters
========
0:27 - Basics
11:00 - Sequences
19:00 - Class Instances
29:06 - Structured Data

Intro music: 失望した by Eva
Outro music: Elix by Synthness
Рекомендации по теме
Комментарии
Автор

Great to see you making videos again! Amazing content and you make learning and understanding easy! The Bob Ross of tech!

dragonkat
Автор

Your content is SOOO underrated, its absurd. I'll take some time and watch all your videos.
Thank you for your content!!!

Pedroxboy
Автор

Check this out who is back! Let’s gooo!

blanky_nap
Автор

I don’t follow how it knows you are trying to match type to p_type instead of trying to create a variable called p_type with a value of type from your dict…

jeffschroeder