SAVE TIME and reduce boilerplate with dataclasses

  Рет қаралды 3,662

Carberra

Carberra

Күн бұрын

Пікірлер: 14
@JohnMitchellCalif
@JohnMitchellCalif 26 күн бұрын
I started using dataclasses after your last video -- very useful. This video makes the other features much more concrete. Thanks so much!
@samjiman
@samjiman 25 күн бұрын
I knew about dataclass, but I didn't know about field. Thanks.
@dragonfly-7
@dragonfly-7 25 күн бұрын
Hm, at 01:32 I'm confused a little - at least ... Wouldn't be the 3rd line something like "DIVERSE" the preferred one followed by "USER_SPECIFIED" ?
@eduferreyraok
@eduferreyraok 25 күн бұрын
great video! quick question: how can I match your zsh settings? the snake icon and branch name etc etc?
@Carberra
@Carberra 25 күн бұрын
There's a video link the in description! The terminal one.
@saisuapalli
@saisuapalli 25 күн бұрын
Haven't verified it, but having different hashes in the same object per execution should be necessary for security reasons, wouldn't it?
@TakeshySun
@TakeshySun 26 күн бұрын
I've used attrs, and u know, for debug class initialisation was a pain in my ass. Also if we want to make crazy initialisation logic, need to use base python constructor :( Because lambda is cool, but debug :)
@maleldil1
@maleldil1 26 күн бұрын
At least with stdlib's dataclasses, you can just define your own `__init__` method, and dataclass won't override it.
@cbernier3
@cbernier3 25 күн бұрын
Are you programming straight on windows? I only program on WSL. Programming on Windows is silly because you are gonna deploy to linux. You're creating extra heacaches when you need to port that from windows to linux. The vscode remote extension let's you code in WSL, on remote servers, and straight into Docker containers. I got my team off coding straight on windows and into WSL back in 2019.
@Carberra
@Carberra 25 күн бұрын
Oh god no, I mainly use a Mac for coding, including videos. I used to code on WSL though as at the time it was more stable then trying to dual-boot with Linux on my old laptop and it was pretty nice.
@cbernier3
@cbernier3 25 күн бұрын
dataclasses aren't new though. They came out in 2018.
@Carberra
@Carberra 25 күн бұрын
So?
@haykor7165
@haykor7165 26 күн бұрын
First
You NEED to know about Python protocols
10:10
Carberra
Рет қаралды 3,7 М.
Generics are VITAL in typed Python
16:54
Carberra
Рет қаралды 11 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
8 Data Structures Every Programmer Should Know
17:09
ForrestKnight
Рет қаралды 212 М.
the 7zip rabbit hole goes extremely deep. (1000's of crashes)
12:50
The Magic of Self: How Python Inserts self Into Methods | Sebastiaan Zeeff
26:12
Why You Should Think Twice Before Using Returns in Python
21:27
ArjanCodes
Рет қаралды 44 М.
A New Era for C and C++? Goodbye, Rust?
9:08
Travis Media
Рет қаралды 116 М.
Enums in Python are SIMPLE but POWERFUL
11:47
Carberra
Рет қаралды 8 М.
What Makes A Great Developer
27:12
ThePrimeTime
Рет қаралды 223 М.
Are metaclasses the HARDEST thing in Python?
20:41
Carberra
Рет қаралды 5 М.
What IS typing.Annotated?
9:54
Carberra
Рет қаралды 7 М.
Attrs, Pydantic, or Python Data Classes?
17:10
ArjanCodes
Рет қаралды 89 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН