▲ | leoff 4 days ago | ||||||||||||||||
>The less your core logic depends on specific tools or libraries, the easier it becomes to maintain, test, or even replace parts of your system without causing everything to break. It seems like the author doesn't like depending on `pydantic`, simply because it's a third party dependency. To solve this they introduce another, but more obscure, third party dependency called `dacite`, that converts `pydantic` to `dataclasses`. It's more likely that `dacite` is going to break your application, than `pydantic`, a library used by millions of users in huge projects, ever will. Not to mention the complexity overhead introduced by this non sense mapping. | |||||||||||||||||
▲ | wiseowise 4 days ago | parent [-] | ||||||||||||||||
> simply because it's a third party dependency Not simply. This is one one of the most important reasons NOT to propagate something through your code. How many millions codebases use it is irrelevant. | |||||||||||||||||
|