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

  Рет қаралды 4,392

MathByte Academy

MathByte Academy

Күн бұрын

Пікірлер: 13
@DifferentialGeometry
@DifferentialGeometry 4 ай бұрын
Fred, you are the GOAT of Python on KZbin. Please keep it coming
@mathbyteacademy
@mathbyteacademy 4 ай бұрын
Thanks!
@caverna_dev
@caverna_dev Жыл бұрын
I'm truly impressed by 2 things: (1) the top level quality of the content available in this channel. (2) the number of subscribers. Is there any hope for the human race?
@mathbyteacademy
@mathbyteacademy Жыл бұрын
I need to do more clickbait titles as someone once suggested - just can't bring myself to stoop to that level 😀
@caverna_dev
@caverna_dev Жыл бұрын
@@mathbyteacademy i do have a nano-channel myself. I don’t claim to be making content at the sane level as yours, but I really think it’s good content. I face more or less the same issue. Not to mention the average view time. Anything over a couple of minutes nowadays is considered an outrage. I wonder: do people really think they can learn a programming language in less than 10 minutes?
@duke007x3
@duke007x3 Жыл бұрын
nice job, as always!
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Thanks!
@wisenielsmuronha3405
@wisenielsmuronha3405 7 ай бұрын
I like a lot your channel and your courses
@mathbyteacademy
@mathbyteacademy 7 ай бұрын
Thanks!
@ahmetanbar6346
@ahmetanbar6346 Жыл бұрын
Hello, It was really good explained and detailed video series. I have learned a lot of details. Thank you very much. I have three questions: 1- defining default list: when defining default list as just = [] in a dataclass, it creates some problems, it shares the same memory with all instances as you mentioned in the section init factories. but it we define default list as just = [] in pydantic BaseModel, it won't cause such problems. should pydantic change this convention? what do you think about this? because it causes some inconsistency. 2- pydantic provides us validation features. dataclass usage is okay but we still need some validations, and it is done by pydantic. it uses the same convention as dataclass. should we merge and use dataclass and BaseModel of pydantic together? what should we do in that case? 3- if we have such a dataclass decorated class, should we keep this class as Data Class which only keep data for us? or it is okay to add our own class calculation, logic methods etc. in that class? for example: we will have two classe: CalculationData and Calculation. Calculation will inherit from CalculationData. I am asking it because the "data" term makes me confuse.
@AlexanderDemin
@AlexanderDemin Жыл бұрын
This @mcoding guy also digs deep.
@mathbyteacademy
@mathbyteacademy Жыл бұрын
Thanks for posting that link - that channel looks very interesting.
@AlexanderDemin
@AlexanderDemin Жыл бұрын
Never disappointed from your content. Just brilliant. Always recommend your genius deep dive courses. Your may find this one interesting - kzbin.info/www/bejne/pYbXYpmbh9SsrKs
A Deep Dive into Python's Dataclasses (Part 1)
1:07:42
MathByte Academy
Рет қаралды 11 М.
Concurrency Concepts in Python
51:57
MathByte Academy
Рет қаралды 10 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Python Type Hinting
36:33
MathByte Academy
Рет қаралды 6 М.
Why You Should Think Twice Before Using Returns in Python
21:27
ArjanCodes
Рет қаралды 50 М.
super/MRO, Python's most misunderstood feature.
21:07
mCoding
Рет қаралды 222 М.
A Deep Dive Into Iterators and Itertools in Python
21:01
ArjanCodes
Рет қаралды 62 М.
AsyncIO: Implementing a Producer-Consumer Model
41:05
MathByte Academy
Рет қаралды 6 М.
Python's SimpleNamespace and JSON
14:28
MathByte Academy
Рет қаралды 1,4 М.
The Ultimate Guide to Writing Classes in Python
25:39
ArjanCodes
Рет қаралды 123 М.
Python dataclasses will save you HOURS, also featuring attrs
8:50
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 906 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 821 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН