This video clarifies when to use Data Classes (pros and cons). We will talk about 5 reasons why it is worth using them in your projects
In the future, we will create a data classes project to simulate how they could be used in the best way possible
#Python #DataClass #OOP
☕ Buy me a coffee: https://www.buymeacoffee.com/jimsc
Connect with me with:
Instagram: / jimshapedcoding
E-mail: [email protected]
Twitter : / jimshapedcoding
Discord : / discord
🔥 Comment below if you want to see more videos in that style
👍 Subscribe to start your Python Developer / DevOps Engineer journey here:
/ @jimshapedcoding
My Personal website:
http://jimshapedcoding.com
Timeline of the video:
00:00 - 02:17 - Saves a lot of time!
02:18 - 03:35 - Immutability
03:36 - 05:03 - Default values are easier!
05:04 - 07:05 - Full control of attribute types
07:06 - 09:26 - Force keywords [Python3.10 only]
09:27 - 13:38 - Data Classes limitations, deciding when and how to use