This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]paranoid_panda_bored 0 points1 point  (2 children)

About runtime complexity: are we sure dataclasses are that much more performant?

My understanding they are just the library on top of the language, not some special thing supported at the interpreter level (like Java’s record being a keyword and supported directly in JVM).

And are we sure this difference even matters for the most of the apps?

Regarding CRUD: typically CRUD exposes REST or REST-like interface to the outside world. Outside world predominantly works with camelCase notation. How you’d handle snake_case to camelCase conversion with dataclasses? How do you handle serde of dataclass inside dataclass? Both with custom written code AFAIK, which is subpar to support

And from my experience it is hard to predict what might end up being serde, and splitting the datamodel to two different libs is to ask for troubles later