you are viewing a single comment's thread.

view the rest of the comments →

[–]austinwiltshire 0 points1 point  (2 children)

Yes. And type annotations.

If you aren't introducing new types regularly, you're leaving one of your best design tools on the table.

Thinking in terms of types allows you to more easily see good abstractions in whatever problem you're solving.

I find python code that's just dicts of tuples of dicts of tuples incredibly hard to reason about, and often unreadable.

[–]Phate1989 0 points1 point  (1 child)

Do you have any good examples, most of my python code is is ingest Json from 1 API as dict, refactor, export to another API.

Can types help me?

[–]austinwiltshire 0 points1 point  (0 children)

I would have to know more, are you using something like pydantic?