(no title)
vhanda | 3 years ago
[0] - I understand that types can be added on top, but I never found the integration to work that well with mypy when I last tried it many years ago.
vhanda | 3 years ago
[0] - I understand that types can be added on top, but I never found the integration to work that well with mypy when I last tried it many years ago.
seancolsen|3 years ago
Personally, I love types! (Can you tell that I'm on the front end team??) I used mypy extensively at my last job and liked it okay, but mypy is just not as nice as TypeScript. It's come a long way, but it can still be pretty cumbersome. TypeScript on the other hand is fantastic. I'm certainly never going back to JavaScript. But to get back to your original question: yes, for me using TypeScript has changed my tendency to use Python for other tasks. I just don't want to use Python as much. For backend work, I'd reach either for TypeScript, or for Rust. But keep in mind I'm just a front end dev! :)
[0]: https://mathesar.org/about.html [1]: https://github.com/centerofci/mathesar/discussions/913
dmos62|3 years ago
There's something to be said about balancing what's interesting and what's accessible. If anyone has stories to share, I'd love to hear it.
noisy_boy|3 years ago
vladsanchez|3 years ago
Have you ever tried [Pydantic](https://docs.pydantic.dev)!? It may be what you need for type safety / data validation.
westurner|3 years ago
icontract and pycontracts (Design-by-Contract programming) have runtime type and constraint checking; data validation. Preconditions, Command, Postconditions (assertions, assertions of invariance after command C_funcname executed) https://github.com/Parquery/icontract
pydantic_schemaorg: https://github.com/lexiq-legal/pydantic_schemaorg
> Pydantic_schemaorg contains all the models defined by schema.org. The pydantic classes are auto-generated from the schema.org model definitions that can be found on https://schema.org/version/latest/schemaorg-current-https.js... [ https://github.com/schemaorg/schemaorg/tree/main/data/releas... ]
jamesfmilne|3 years ago
I wouldn't try and write a decent-sized Python project without typing now.
erinnh|3 years ago
Waterluvian|3 years ago
revskill|3 years ago