Data Classes in Python Are The New Standard

66,143
0
Published 2021-08-24
In this video we cover dataclasses. The modern best-practice way to implement data-focused classes.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop

🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: www.instagram.com/neuralnine
🐦 Twitter: twitter.com/neuralnine
🤵 LinkedIn: www.linkedin.com/company/neuralnine/
📁 GitHub: github.com/NeuralNine
🎙 Discord: discord.gg/JU4xr8U3dm

🎵 Outro Music From: www.bensound.com/

All Comments (21)
  • @BrainInteractive
    Started re-learning python for the first time in 7 years, this video and your channel have been so helpful!
  • @HelmutQ
    Vermutlich hat mir Youtube ihren Kanal vorgeschlagen, weil ich auch Österreicher bin, Das war für mich ein Glücksgriff. Unprätenziöse, technisch hervorragende Information ohne Schnickschnack. Genau sowas brauche ich bei meinen verschiedenen Hobbies. Chapeau. Man sieht da ist ein absoluter Überflieger am Werk, der es nicht nötig hat, besonders unterhaltend und originell zu sein. Viel Erfolg. Dass Sie Österreicher sind habe ich erst bemerkt als Sie es gesagt haben.
  • @codeloki
    Hey Nacho, great to see you leave cartel and started your own youtube..
  • @2ru2pacFan
    Thanks dude, makes life so much easier!
  • @wuda-io
    It is so crazy, after watching python after working a while with JS and PHP, where are all the brackets?? 😂
  • Making simple text rpg game seems like a great learning of classes
  • @fcode9310
    Great video! I just was wondering what palette of colors are you using for your code in pycharm? It looks cool!
  • Very 😎. I didn't even know this existed. My biggest complaint of programming in any language is the amount of boilerplate code needed to get anything more than "hello world" done. Repr/str/compare, etc in python, etc, getters n setters in the C farm of languages etc, etc. Etc. Not to mention the endless documentation, type hinting, etc etc etc etc (in etc sauce). Seems that this type of endless bs 'gotta be done' programming is where code completion models could really shine. You (the programmer) concentrate on the algorithm (state function, whatever), and the rest of the thing writes itself up to and through unit testing. Thanks tons! This is definitely going to help in quite a few places.
  • @dohnot
    Thanks for this video. It will make my work much more easier!
  • @learntocode5464
    Excellent and high level toturial, keep up, thanks from Morocco
  • @dineshr93
    is sort_index is inbuilt variable for controlling the sorting ? Thanks for the great video.
  • @SAlexandert8
    Indeed awesome, I didn’t find many gotchas to not use them. Will test them out, thanks!
  • @AminAlan
    the data classes are very useful, and scalable, but you can put documentation to each attribute, such as the property docstring?
  • @Sinke_100
    I am curious about that equal, perhaps when default sort function is the same, maybe it uses first value so john < mike if they have same cash?
  • @rasol6460
    An easier approach to data classes, thanks for video. Keep it up!