4 ms·
I had this in a recent python project I joined. Dicts everywhere. APIs kept breaking, nobody knew what data was passed around, strings instead of ints etc. Th
by DarkNova6 3y ago
I had this in a recent python project I joined. Dicts everywhere.
APIs kept breaking, nobody knew what data was passed around, strings instead of ints etc.
Thanks, I hate it.
- AnimalMuppet 3y agoDicts are essentially an untyped API, even in a strongly-typed language - at least until you have "dict that contains at least keys X, Y, and Z" as a fundamental type in your type system. Whether that's a benefit or a liability is in the eye of the beholder...
- DarkNova6 3y agoIn a sane statically typed language, using collections without generics is a second degree sin.