Python Dataclass Best Practices (and why you should use them)

preview_player
Показать описание
In this video we explore Python Dataclasses, what makes them useful, and how to leverage them best for simple, easy-to-understand code.

Chapters

00:00 - The problem with Dynamic Types
03:00 - Handling Complexity in Dynamic Languages
09:50 - Python Dataclasses
13:00 - Immutable Dataclasses
17:40 - Explicit Dataclasses

Links:

About me: I'm Hamilton - Technologist / Tinypreneur. I build Simple Scalable Systems for effective product / business / creation cycles.

Connect with me:

# Support

Supporters get:
* Full source code access from courses / tutorials
* Exclusive discounts on products / courses

Plus you help me to keep experimenting / sharing!
Рекомендации по теме
Комментарии
Автор

I didn't know you could make dataclasses immutable. I also like namedtuples that can be defined the exact same way but just inherits from namedtuple in collections and it is immutable by default. They can be a drop in replacement for tuples everywhere

arunk
join shbcf.ru