|
|
|
|
|
by eduardofcgo
314 days ago
|
|
The programmers that insist in using type hints in python usually are the ones that makes these mistakes.
I think the main reason that these patterns do not make sense is because python is a dynamic language.
If you turn off the part of your brain that thinks in types you realize that you can solve most of these in plain functions and dicts.
Using default args as replacement to the builder pattern is just ridiculous. If you want to encode rules for creating data, that screams schema validation, not builder pattern. |
|