Learn more about computerscience with this collection
Understanding machine learning models
Improving data analysis and decision-making
How Google uses logic in machine learning
Dataclasses are an implementation of a code generator, similar to a Named Tuple.
The idea of using a code generator is to save time and reduce wordiness.
There are two views about the purpose of Dataclasses:
These 2 world views are reflected in the name: “Dataclasses”
Per the dataclasses PEP, they are roughly a “Mutable named tuple with defaults”
They provide an elegant syntax for creating data holder objects
In the beginning there where:
Later Named Tuples where added as a code generator with the goal of adding names to the fields of a tuple. This was limited by design, hence its name
ORMs appeared and pioneered using class attributes to specify rich data structures
In Python 3.6, it became possible to supply type annotations
If you have an immutable mind get out!
The code generation can be configured by providing keyword arguments to the @dataclass decorator
A complete list of methods and configurations can be found here
In the image example, the generated code includes:
I started using Dataclasses and I think you should too
Ready for the next level?
Read Like a Pro
Explore the World’s
Save ideas for later reading, for personalized stashes, or for remembering it later.
# Personal Growth
Take Your Ideas
Just press play and we take care of the words.
No Internet access? No problem. Within the mobile app, all your ideas are available, even when offline.
Ideas for your next work project? Quotes that inspire you? Put them in the right place so you never lose them.
2 Million Stashers
Don’t look further if you love learning new things. A refreshing concept that provides quick ideas for busy thought leaders.
Best app ever! You heard it right. This app has helped me get back on my quest to get things done while equipping myself with knowledge everyday.
Great interesting short snippets of informative articles. Highly recommended to anyone who loves information and lacks patience.
This app is LOADED with RELEVANT, HELPFUL, AND EDUCATIONAL material. It is creatively intellectual, yet minimal enough to not overstimulate and create a learning block. I am exceptionally impressed with this app!
Brilliant. It feels fresh and encouraging. So many interesting pieces of information that are just enough to absorb and apply. So happy I found this.
I have only been using it for a few days now, but I have found answers to questions I had never consciously formulated, or to problems I face everyday at work or at home. I wish I had found this earlier, highly recommended!
Even five minutes a day will improve your thinking. I've come across new ideas and learnt to improve existing ways to become more motivated, confident and happier.
Great for quick bits of information and interesting ideas around whatever topics you are interested in. Visually, it looks great as well.
Read & Learn
Access to 200,000+ ideas
Access to the mobile app
Unlimited idea saving & library
Unlimited listening to ideas
Downloading & offline access
Claim Your Limited Offer
Get Deepstash Pro
Supercharge your mind with one idea per day
Enter your email and spend 1 minute every day to learn something new.
I agree to receive email updates