bonus points if you’re using a statically typed language but the library uses extensive metaprogramming seemingly for the sole purpose of hiding what types you actually need
It’s still crazy to me that Django doesn’t have type hints.
They’ve explained why
Will you share the source?
Hi, i believe this is where https://groups.google.com/g/django-developers/c/C_Phs05kL1Q
I disagree with them, but I’m also not the one that would be spending days adding support, so fair enough.
That thread is from like 4 years ago, types in Python have come a long way since then. Maybe they’d reconsider if the community brought it back up
The django-stubs package is decent though
Kubernetes as well…
I hate kubernetes so much
One more reason to add to my hate list for kubernetes
Flask does - maybe a reason to switch? Lol
I have been meaning to try it
Rust crates have the second and third problems.
Rust at least has type annotation.
The type has private fields. There’s no constructor. There’s no implementation of the From trait except on itself. You can’t find a function anywhere that returns the type.
I find Rust crates generally have pretty good docs. Docs.rs is a major time saver
you should learn Rust. the type system is so comprehensive that half the time you can guess what a function does (or at the very least what you’re supposed to pass to it) without a single line of human written documentation.
My problem with Rust is that I find refactoring really painful.
Using cryptic parameter names is just nonsense when you can obviously use lewd cryptic parameter names instead.
also how they are used as backdoors nowadays
And now we have free threads so I can’t say at least you don’t have normal concurrency problems 🤣
I really like Python. The only thing I don’t want to do with Python is support a large code base. Lack of strict typing makes refactoring awful
I’m just glad I have other options than just Python. Am not afraid of writing my solutions either. I rarely use Python these day.