If You’re Not Using Python DATA CLASSES Yet, You Should 🚀

  Рет қаралды 318,885

ArjanCodes

ArjanCodes

Күн бұрын

This video is a tutorial about Python's dataclasses. I take you through an example that shows what you can do with them. Python data classes are - as you'd expect - in particular suitable to model classes that represent data, and as such they offer easy mechanisms to initialize, print, order, sort, and compare data.
Note that although I'm using a sort_index attribute, strictly speaking that's not needed in this case, because a data class uses a tuple of its attributes in the class definition as the default for sorting. I'm not a fan of this kind of hidden behavior, so I prefer to do it explicitly (using something that is called sort_index in this case). Another advantage of using a separate field, is that you can do more complicated ordering, using for example a weighted combination of age and strength.
💡Here's my FREE 7-step guide to help you consistently design great software: arjancodes.com/designguide.
🎓 Courses:
The Software Designer Mindset: www.arjancodes.com/mindset
The Software Designer Mindset Team Packages: www.arjancodes.com/sas
The Software Architect Mindset: Pre-register now! www.arjancodes.com/architect
Next Level Python: Become a Python Expert: www.arjancodes.com/next-level...
The 30-Day Design Challenge: www.arjancodes.com/30ddc
🛒 GEAR & RECOMMENDED BOOKS: kit.co/arjancodes.
Some interesting links:
- realpython.com/python-data-cl...
- Frozen instances: docs.python.org/3/library/dat...
- If you want to go 'next-level' with dataclasses, check out Pydantic (pydantic-docs.helpmanual.io/). Pydantic enforces type hints at runtime, and offers a really nice extension for data validation.
- The code from this video is available here: github.com/ArjanCodes/2021-da...
💬 Join my Discord server here: discord.arjan.codes
🐦Twitter: / arjancodes
🌍LinkedIn: / arjancodes
🕵Facebook: / arjancodes
🔖 Chapters:
0:00 Intro
0:33 Behavior-driven vs data-driven classes
2:11 Explaining the example
3:31 Creating a dataclass
4:37 Sorting and comparing
6:58 Default values
7:40 Creating read-only (frozen) objects
8:55 String representation of data
9:34 Final thoughts
#arjancodes #softwaredesign #python
Thumbnail photo background by Markus Spiske: unsplash.com/@markusspiske
DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!

Пікірлер: 423
@ArjanCodes
@ArjanCodes 3 жыл бұрын
Anybody else into The Witcher?
@Newascap
@Newascap 3 жыл бұрын
If you talking about the game, I bought it on gog but never got the chance to install it. Too much time fighting with k8s manifests and no time for playing :c
@ArjanCodes
@ArjanCodes 3 жыл бұрын
I have the Witcher 3 for the Playstation lying in a drawer, haven't gotten around to that either.
@draufunddran
@draufunddran 3 жыл бұрын
@@ArjanCodes I have the Witcher 3 also lying in a drawer but mine is for the xbox :D
@leftblank5315
@leftblank5315 3 жыл бұрын
I thought the show had a bit of corny dialog but the more i watched it the more i was immersed and it didn't seem bad. so yeah i love it
@itsmemouha2811
@itsmemouha2811 3 жыл бұрын
You've got to read the books, a masterpiece. If you liked the TV show or didn't, it won't matter after reading just the first two short story collection.
@falak88
@falak88 2 жыл бұрын
Just in case you're feeling low Arjan, you are doing a freaking great job here. Thank you very much ! Keep them coming :D
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thank you so much for your kindness, much appreciated! I’m happy you like the videos.
@myhome...essenceofmylife5612
@myhome...essenceofmylife5612 2 жыл бұрын
2222²²²awaŕd
@drymanic
@drymanic 2 жыл бұрын
One cool thing about the "frozen" attribute is that if set to True, Python will automatically create a ___hash___ function for your dataclass, allowing it to be used in things like dictionary keys and sets. (Note that if the class contains an unhashable field such as a list, the ___hash___ function will throw an exception).
@CodingEntrepreneurs
@CodingEntrepreneurs 2 жыл бұрын
This is great! Thanks for sharing Arjan. Love your work.
@jayeshdeorukhkar4956
@jayeshdeorukhkar4956 2 жыл бұрын
Love your videos too 🔥
@dennissmith6867
@dennissmith6867 3 жыл бұрын
This is a really great intro to data classes, very clear and to the point. Looking forward to more videos like this!
@ArjanCodes
@ArjanCodes 3 жыл бұрын
Glad you liked it, Dennis!
@JohnMitchellCalif
@JohnMitchellCalif 2 жыл бұрын
Incredibly clear presentation. I've been programming Python for 25 years and hadn't used data classes. Thanks! Subscribed.
@jakefischer8281
@jakefischer8281 2 жыл бұрын
I believe it is fairly new to python
@jimmy21584
@jimmy21584 2 жыл бұрын
When dealing with data in Python these days, I find myself almost exclusively doing comprehensions and functional programming with dictionaries and lists, rather than using classes. But good to know this is out there.
@ZergD
@ZergD 2 жыл бұрын
I concur with that!
@AddyVDH
@AddyVDH 2 жыл бұрын
This is the best way IMO. Heavy OOP often makes python code super messy as many people get involved in a codebase.
@bakane6030
@bakane6030 2 жыл бұрын
@@AddyVDH Agreed. Python is NOT supposed to be an object oriented language
@nsambataufeeq1748
@nsambataufeeq1748 2 жыл бұрын
I had a graduate class in LISP, i found the functional bits interesting and are now using them in python
@JustMaiyak
@JustMaiyak 2 жыл бұрын
FP un Python feels great !
@myce-liam
@myce-liam Жыл бұрын
Arjan, your videos are really clear and simple. You are very much appreciated. Greetings from the UK!
@ArjanCodes
@ArjanCodes Жыл бұрын
Thanks so much Liam, glad the content is helpful!
@alicebrown854
@alicebrown854 2 жыл бұрын
Where is 'love' button? 'Like' is not an accurate reflection of what I feel about your videos. I've seen many amazing dudes with online tutorials on KZbin, but you are the most amazing
@typehint
@typehint Жыл бұрын
Really happy I found your channel! You and Corey Schafer are my two favourites for learning Python right now. Keep up the excellent work!
@ArjanCodes
@ArjanCodes Жыл бұрын
Thanks so much Finah.
@antoniopena1183
@antoniopena1183 2 жыл бұрын
Very straightforward and nice way of explaining how it all works.
@Egon3k
@Egon3k 2 жыл бұрын
Everytime watching one of your videos, I learn something new. Keep on going with these very nice and easy to understand videos :)
@mithunmanoharmithun
@mithunmanoharmithun 2 жыл бұрын
I would love to see a complete python course taught by Arjan!
@niveshsanghvi9066
@niveshsanghvi9066 2 жыл бұрын
Nice video Arjan ! Looks very useful
@Yassou1985
@Yassou1985 5 ай бұрын
Arjan keep doing your video man ! Your are a true teacher, everthing you say is just so clear. Thank you for your help :)
@ArjanCodes
@ArjanCodes 5 ай бұрын
I'm glad my content has been helpful! Thank you for the kind words :)
@elvistsang832
@elvistsang832 2 жыл бұрын
This is amazing! I’ve been struggling with my project and this totally saved my day!
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Glad I could help, Elvis!
@talhaamir9023
@talhaamir9023 2 жыл бұрын
I loved the start of the video :) This channel deserves a million subs,the only channel most quality content :)
@kruceo
@kruceo 2 жыл бұрын
Clearly demonstrated. Earned my “like and subscribe”! Looking forward to checking out your other tutorials/content.
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thank you Marcel - glad you liked the content!
@estevaoyt
@estevaoyt 5 ай бұрын
Arjan, you are great inspiration, love your videos!
@ArjanCodes
@ArjanCodes 5 ай бұрын
I'm happy to hear you have been enjoying the videos!
@BrallanSC
@BrallanSC 2 жыл бұрын
I LOVE U, THIS IS THE FIRST STEP FOR UNDERSTAND FAST API AND PYDANTIC, THANK U FOR URS VIDEOS
@python_byte
@python_byte 2 жыл бұрын
Just loving all of your videos man, keep up the awesome work. My focus is to watch ALL THE VIDEOS
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thanks, glad you like the videos!
@DanielRios549
@DanielRios549 2 жыл бұрын
This is something I was wondering to use in Python since I discovered that in PHP 8, you do not need to set the construct parameter to attributes anymore, you set the attributes directly on the parameter, this is very useful when you have a lot of initial parameters, pass the parameter and after that set it to an attribute is so so boring
@justchary
@justchary 2 жыл бұрын
Very good! Thank you. You really have a talent to explain things
@ldebrotb09
@ldebrotb09 2 жыл бұрын
Thank you Arjan! Your videos about how to make more of Python (with built-in functions), write better and cleaner code, etc. motivate me in trying to become more Pythonian.
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Glad to hear they’re helpful to you, Lucien!
2 жыл бұрын
Awesome tutorial bro! I had used data classes but this is much more details that I didn’t know about. Thanks
@ArjanCodes
@ArjanCodes 2 жыл бұрын
You’re welcome- glad you enjoyed it!
@sf-spark129
@sf-spark129 Жыл бұрын
I've been using the conventional class in Python. This is such a great knowledge boost!!
@patrikwiklund6154
@patrikwiklund6154 3 жыл бұрын
Arjan. I really appriciate your videos! Thank you! Really awesome
@ArjanCodes
@ArjanCodes 3 жыл бұрын
My pleasure, Patrik!
@letsaram
@letsaram 2 жыл бұрын
I love how wisely you avoid all the issues I've had with other peoples code.
@rupeshchoudhary9237
@rupeshchoudhary9237 2 жыл бұрын
Great job. I love you explaining style.
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Glad you enjoyed it!
@cetilly
@cetilly 3 жыл бұрын
Awesome! Coming from a C# background this really makes my day to know data classes are a thing in Python. Awesome. Really good video. Thanks Now I need to refactor all my custom data classes :-D
@ArjanCodes
@ArjanCodes 3 жыл бұрын
It seems technical debt never really stops 😊.
@christopherc4526
@christopherc4526 Жыл бұрын
Just found your channel and I am glad I did. Outstanding introduction to very useful concepts. Well done
@ArjanCodes
@ArjanCodes Жыл бұрын
Awesome, thank you!
@theophilegaudin2329
@theophilegaudin2329 2 жыл бұрын
I started using classes when I could not do otherwise. My fonctions had like 15 variables that I had to state explicitly. It was impractical. My code was working on molecules and mixtures of molecules. So I created a class "mixture" and a class "molecule" and suddenly my fonctions were acting on mixtures and molecules rather than long lists of variables. That was such a relief. Now my classes have like 70 attributes because, well, mixtures and molecules have many structural features and properties. Everytime I extend my code I simply add new attributes and that's it.
@pippog88
@pippog88 2 жыл бұрын
Hands dowm the best tutorials on Python! Thanks for what you're doing! :)
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thank you so much!
@crosby3108
@crosby3108 2 жыл бұрын
This was amazing thanks for going into so much detail
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thanks - glad you liked it!
@matthewbailey3052
@matthewbailey3052 2 жыл бұрын
Very useful, thanks!
@glebsidorov9647
@glebsidorov9647 2 жыл бұрын
Thanks for the class Mr :)
@hlore7600
@hlore7600 Жыл бұрын
Amazing! Thank you for creating this content!
@ArjanCodes
@ArjanCodes Жыл бұрын
Glad you enjoy it!
@mikelancaster8924
@mikelancaster8924 Жыл бұрын
Thanks, great job!
@Xaminn
@Xaminn 2 жыл бұрын
Damn. This information is going to save me years of time and frustration. Thanks for this.
@sergiopovoli4332
@sergiopovoli4332 2 жыл бұрын
Thank you sir for this video! It was very helpfull for me.
@ShanilPanara
@ShanilPanara 2 жыл бұрын
Loved this!
@johnniedalesandro3269
@johnniedalesandro3269 11 ай бұрын
These are EXCELLENT videos.
@skyletwings5711
@skyletwings5711 Жыл бұрын
8:43 "So frozen helps you to make sure the data is not changed anywhere in your code." ... right after bypassing this mechanism and showing how the data is changed in the code. :D Great videos, you are my no. 1 python instructor. Programming python itself is fun, but learning from a patient, calm, well explaining teacher is invaluable, but free. Thank you for sharing!!
@thatinstant
@thatinstant 2 жыл бұрын
Wow! This video was super helpful in getting familiar with data classes! Great intro! ...Subscribed!
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Awesome! Thank you!
@aar021
@aar021 2 жыл бұрын
That intro was hilarious. Well put video. Super clear.
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Glad you liked it Alvaro!
@AdityaDiwakarVex
@AdityaDiwakarVex 2 жыл бұрын
Video quality is insanely good for only 8K subscribers. Keep it up!
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thanks, will do!
@Mjuziks
@Mjuziks 2 жыл бұрын
it was very useful, thanks
@tuxhome3686
@tuxhome3686 2 жыл бұрын
Great video! I learned a lot.
@pranavnyavanandi9710
@pranavnyavanandi9710 2 жыл бұрын
Long since I subscribed. 😊 This is quite the top notch content.
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thank you so much!
@Noah-hi2up
@Noah-hi2up 2 жыл бұрын
This is a really cool feature and definitely useful for my work! Are data classes actually implemented differently at the c level or is this just a shorthand format for accessing commonly used features?
@AJ-et3vf
@AJ-et3vf 2 жыл бұрын
Awesome video! Thank you!
@ArjanCodes
@ArjanCodes 2 жыл бұрын
You're welcome AJ!
@techcode_man
@techcode_man 2 жыл бұрын
Just awesome!! Thank you
@ArjanCodes
@ArjanCodes 2 жыл бұрын
You're welcome!
@fabulousfabio8228
@fabulousfabio8228 Жыл бұрын
Thanks for the video. I just learnt something!
@ArjanCodes
@ArjanCodes Жыл бұрын
Glad it was helpful!
@gedtoon6451
@gedtoon6451 4 ай бұрын
I find the content of your videos are on the edge of my python knowledge. When I watch one, I learn something new, without it making my brain hurt!
@ArjanCodes
@ArjanCodes 4 ай бұрын
That's a good way to put it! Ahah, I'm glad you're enjoying the content!
@vitorcontierirezendepecanh1165
@vitorcontierirezendepecanh1165 2 жыл бұрын
Fantastic video, thank you
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thanks so much!
@FRANKWHITE1996
@FRANKWHITE1996 2 жыл бұрын
Great video. Thanks for sharing.
@simplepycodes
@simplepycodes Жыл бұрын
Perfect. Thank you.
@ArjanCodes
@ArjanCodes Жыл бұрын
Thanks so much, glad you liked it! :)
@TommyReady
@TommyReady 2 жыл бұрын
Great video, I learned something.
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Glad to hear it, Tommy!
@sami3592
@sami3592 2 жыл бұрын
Another great video. Thanks a lot.
@ArjanCodes
@ArjanCodes 2 жыл бұрын
You’re welcome, glad you liked it!
@nlight8769
@nlight8769 2 жыл бұрын
I've been coding for... hmm... since python 2.5 as an amateur, when I need it. The vast majority of what I learned is from back then, and while i've been keeping learning, in the last years, besides some modules here and there, I've not learned many new things... discovered the chanel last week, and man I've learned so much since ! Sure there are few design pattern that I was already doing out of pure logic and commodity, though even then the knowledge acquired here have allowed me to refine these to the next level (or on the road to it), plus the terms that goes with it ! Thank you so much ! And there are many new neat things that I've been missing, like the module abstractclass or this dataclass. A great channel : advanced and intermediate concepts, in python !
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thank you, I'm happy you like the content!
@fl4tcircl3
@fl4tcircl3 Жыл бұрын
Thank you sir, brilliant!
@ArjanCodes
@ArjanCodes Жыл бұрын
Glad it was helpful!
@diogosilva3152
@diogosilva3152 2 жыл бұрын
I have been programming in Python for quite some time now, and I had no idea of this functionality. Thanks :p
@maverick3069
@maverick3069 2 жыл бұрын
This was so cool!
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thank you!
@marcelohpinheiro
@marcelohpinheiro 2 жыл бұрын
Thanks for your video!
@ArjanCodes
@ArjanCodes 2 жыл бұрын
You’re welcome!
@ayzack2361
@ayzack2361 2 жыл бұрын
Nice video, man! I like your videos.
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thanks! Glad you like them.
@allexiusw
@allexiusw 2 жыл бұрын
Great work...
@ranaanas-cl2cj
@ranaanas-cl2cj 2 жыл бұрын
love ur work thanks please continue we need you
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thank you so much! No worries, I will :).
@psykowarior
@psykowarior 2 жыл бұрын
Amazing ! Love it, share it.
@nowyouknow2249
@nowyouknow2249 2 жыл бұрын
You are my python role model
@gregoryfenn1462
@gregoryfenn1462 2 жыл бұрын
I really like this! It feels like modern python is much more robust and can be better self-documented and typed nowadays.
@ArjanCodes
@ArjanCodes 2 жыл бұрын
You might also like Pydantic. It’s very similar but adds a few extras like data validation and nested models. It is a third-party package though.
@ikustudies
@ikustudies 11 ай бұрын
you're making me rethink my entire codebase. i wish i could start over now but i'm so far. sheesh
@VorpalForceField
@VorpalForceField 2 жыл бұрын
very cool .. Thank You for sharing
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thanks for watching!
@coriariasgibert9945
@coriariasgibert9945 2 жыл бұрын
Thanks 😃 great video !
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Glad you liked it!
@retrofutur1st
@retrofutur1st 2 жыл бұрын
10/10 video, subscribed and liked 😀
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thank you, glad you liked it!
@martindu9083
@martindu9083 Жыл бұрын
good video, for sort , dataclass will use all attributes by order for checking, so sort_index is not mandatory, its effected just because its the first one
@qrubmeeaz
@qrubmeeaz 2 жыл бұрын
Best Python videos in the known universe!!
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thank you so much!
@drheaddamage
@drheaddamage 5 ай бұрын
It's funny that the main touted advantage of Python is that it's got dynamically typed variables. And now the first thing the seasoned programmer does is *hammer those variables down to be a single type to avoid issues further down the road* 😁
@GJ22
@GJ22 2 жыл бұрын
All of your videos are still a little above my aptitude, I'm still relatively new to coding in general but I feel jumping in at the deep end can sometimes be good 👍
@Newascap
@Newascap 3 жыл бұрын
Amazing Friday start, thanks for uploading
@ArjanCodes
@ArjanCodes 3 жыл бұрын
Hope you enjoyed it!
@Newascap
@Newascap 3 жыл бұрын
@@ArjanCodes Already on your final thoughts. Learned a new decorator and definitely will apply to my projects from now on.
@andrewiglinski148
@andrewiglinski148 2 жыл бұрын
Dude I'm a pretty experienced developer but brand new to python as of 2 months ago... I've seen like 5 videos on dataclasses by now and this is the first one that actually showed the benefits over regular classes... after by mile long init function is finished lol
@juliennel6939
@juliennel6939 3 жыл бұрын
great video! thank you 🙏
@ArjanCodes
@ArjanCodes 3 жыл бұрын
Thank you very much! Glad you liked it!
@kyletech4878
@kyletech4878 3 жыл бұрын
I find the asdict and astuple methods from the dataclass library very handy.
3 жыл бұрын
They are, I often use asdict to convert a dataclass to JSON :)
@MohAmuza
@MohAmuza Жыл бұрын
Its an amazing tutorial thx
@ArjanCodes
@ArjanCodes Жыл бұрын
Glad you liked it!
@zolika154
@zolika154 2 жыл бұрын
You’re going to be a channel with many subs ! Mark my words.
@brettbyrnes577
@brettbyrnes577 2 жыл бұрын
Nice video! I’m subscribed now!
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Awesome! Thank you!
@bettermakeanote
@bettermakeanote 2 жыл бұрын
Thanks!
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Welcome!
@larrypozdeev
@larrypozdeev 2 жыл бұрын
Great content!
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thank you Larry, glad you liked it!
@immanuelsuleiman7550
@immanuelsuleiman7550 3 жыл бұрын
very cool thank you for sharing
@ArjanCodes
@ArjanCodes 3 жыл бұрын
Glad you like it!
@TueChristensenDK
@TueChristensenDK 2 жыл бұрын
Very nice video, good explanations and well produced. When I see something like the frozen=True colliding with the __post_init then I get sad.... Coming from Java+lombok I am however, not really impressed with this dataclass annotation, but it did improve my knowledge of Python :) Keep the videos coming!
@maxpfeiffer4135
@maxpfeiffer4135 2 жыл бұрын
Awesome video, thx. That's so damn useful.
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Glad you liked it, Max - thank you!
@VoyivodaFTW1
@VoyivodaFTW1 2 жыл бұрын
That HHKB. Typing was so fast and smooth.
@ArjanCodes
@ArjanCodes 2 жыл бұрын
It's a Keychron K2. Feels great.
@croniqqGhost
@croniqqGhost 9 ай бұрын
Good twist at the start
@leanbravo8856
@leanbravo8856 2 жыл бұрын
Why did I take so long to discover this channel? True goldmine of knowledge. Hit the bell.
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thank you Lean, glad you like the content!
@nardu
@nardu 2 жыл бұрын
"All your Data are belong to us" 🤣 +1 Arjan, love the Easter egg word portraits
@BiGreDNoSecoMpAny
@BiGreDNoSecoMpAny 2 жыл бұрын
loved Empire Earth as well xD
@joshcousins9422
@joshcousins9422 2 жыл бұрын
Such awesome content, this video got me to start learning python and I'm loving it! Big request though, could you do a video about Flask? Would be much appreciated!
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Thank you Josh - it’s on the list 😉.
@peitlijozsef
@peitlijozsef 2 жыл бұрын
@@ArjanCodes I hope with Dash...
@aadithyavarma
@aadithyavarma 2 жыл бұрын
@@ArjanCodes Can you compare Flask with FastAPI too? Seems like FastAPI is faster and is more pythonic in way, but I am unsure of the drawbacks of choosing FastAPI over Flask. Can you share your thoughts?
@lugardjulien5326
@lugardjulien5326 2 жыл бұрын
I've learn something , thanks
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Glad to help!
@marcello4258
@marcello4258 2 жыл бұрын
bedankt!
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Graag gedaan!
@Ezechielpitau
@Ezechielpitau 2 жыл бұрын
very clear, good length, witcher references. what's not to like? subscribed :)
@ArjanCodes
@ArjanCodes 2 жыл бұрын
Welcome aboard!
@aurielklasovsky1435
@aurielklasovsky1435 2 жыл бұрын
Oh my, that is a great product! I wish there was a way to pre order it though... It seems to ve impossible atm🤔
@mitrabest9756
@mitrabest9756 Жыл бұрын
Good keep going 👍
Here’s a More Pythonic Factory Pattern
23:18
ArjanCodes
Рет қаралды 99 М.
7 Python Code Smells: Olfactory Offenses To Avoid At All Costs
22:10
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 4,2 МЛН
ПООСТЕРЕГИСЬ🙊🙊🙊
00:39
Chapitosiki
Рет қаралды 57 МЛН
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 790 М.
Data Classes in Python Are The New Standard
20:34
NeuralNine
Рет қаралды 65 М.
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 360 М.
Attrs, Pydantic, or Python Data Classes?
17:10
ArjanCodes
Рет қаралды 79 М.
Protocol Or ABC In Python - When to Use Which One?
23:45
ArjanCodes
Рет қаралды 196 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 329 М.
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 93 М.
More Python Code Smells: Avoid These 7 Smelly Snags
20:29
ArjanCodes
Рет қаралды 85 М.
You Can Do Really Cool Things With Functions In Python
19:47
ArjanCodes
Рет қаралды 216 М.
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 4,2 МЛН