Re:Plain – a web framework for building products with Python
by sroerick on Saturday March 29, 2025 @01:25AM
(#43512999)
That makes sense! My personal feeling is that a web framework is not the right place in the stack to introduce typing.
There’s also probably an argument to be made that part of the reason for Django’s “batteries included” success and wide adoption is in part because it is built on an untyped language.
I get wanting both, though.
In my own work, I find most of the benefit of static types to be ensuring correctness at compile time, so I just don’t expect that in Python. I also have just not lost that many cycles to type errors. But I know some have strong preferences here.
Re:Plain – a web framework for building products with Python
by 9dev on Saturday March 29, 2025 @05:06AM
(#43513971)
The main benefit in the developer workflow is autocompletion and feature discovery in the IDE. Having to guess which methods and properties an object exposes, or jump to the documentation every time, is really frustrating. Compare that to e.g. Typescript, which excels in this area.
Re:Plain – a web framework for building products with Python
by peternilson on Saturday March 29, 2025 @01:33AM
(#43513038)
Yeah, exactly this. Django is just brilliant and sometimes I'd like to use it with typing.
Re:Plain – a web framework for building products with Python
by librasteve on Saturday March 29, 2025 @04:18AM
(#43513750)
if you seek strong typing, but not all the time, in a language suited to web dev suggest you take a look at raku … for example https://harcstack.org
Concretely, Django is way more usable than basically any web framework from the "strongly typed" space, especially for "dumb" CRUD stuff. And you're not hit with making decisions about how to do a bunch of things (though you can swap out mostly any part of Django for something else if you want to).