This Is Why Python Data Classes Are Awesome
💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide. Data classes in Python are really powerful and not just for representing structured data. In this video, I show you what you can do with dataclasses as well as new capabilities that have been added in Python 3.10. 🎓 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:49 What are data classes? 1:37 Explaining the example 4:00 Dataclasses basics 5:45 Assigning default values 8:54 Excluding arguments from the initializer 9:44 Using post_init to generate extra fields 11:25 Private/protected members 11:59 Excluding information from the repr 12:43 Freezing a dataclass 14:59 (new in Python 3.10) kw_only 16:10 (new in Python 3.10) match_args 17:00 (new in Python 3.10) slots 21:30 Final thoughts #arjancodes #softwaredesign #python

A Simple & Effective Way To Improve Python Class Performance

10 Python Tips That Separate Juniors From Seniors

Attrs, Pydantic, or Python Data Classes?

A Deep Dive into Python's Dataclasses (Part 1)

The Ultimate Guide to Writing Functions

Why Dataclasses Disappear in Real Python Applications

7 Things You Didn’t Know Dataclasses Could Do

10 Important Python Concepts In 20 Minutes

Stop Writing Classes Like This in Python

Why Your Code Isn’t Pythonic (And How to Fix It)

Python Decorators - Visually Explained

Why AI Agents are either the best or worst thing we’ve ever built

Next-Level Concurrent Programming In Python With Asyncio

5 Tips For Object-Oriented Programming Done Well - In Python

Python File Handling - Visually Explained

Python Pydantic Tutorial: Complete Data Validation Course (Used by FastAPI)

The Insane Genius of a Formula 1 Gearbox

You’ve Been Underusing Dataclasses (These Tricks Are Wild)

Please Master This MAGIC Python Feature... 🪄

