3 ms·
I’ve been focusing more and more on rust for my personal projects and I agree with all of these. What im waiting for is the Django equivalent in rust. Dunno if
by pryelluw 2y ago
I’ve been focusing more and more on rust for my personal projects and I agree with all of these. What im waiting for is the Django equivalent in rust. Dunno if its already here but I’m hoping.
The one thing I do enjoy in rust is how you don’t need an excessive amount of tests to ensure it runs fairly correctly. I’ve spend more time writing tests in the last ten years using Python/js than writing actual code. Such a waste of productivity.
- ku1ik 2y agoI would argue web dev is just not Rust’s sweet spot, and I wouldn’t hold my breath for „Django for Rust”.
- pryelluw 2y agoThat’s what people said about Python before Django. They asked why not use PHP or Perl. But Django came along and established a strong set of patterns that make web dev much easier these days.
- vkazanov 2y agoAs somebody who wrote maybe half a million lines of python code, I still must say that it is Rails that became a model. Django was (is?) the default tool for python, but i don't remember it being discussed as widely.
- pryelluw 2y agoYes, rails definitely in a bigger scale. Django within pythons ecosystem. IME fastapi has eroded some of Django’s hold but it’s still chugging along nicely. Hype has certainly died down because it is ancient by today’s standards. Still a very good tool and quite a lot of work available around it.
- the__alchemist 2y agoConcur. I don't do web backends in rust for this reason. There are some good Flask analogs though.
- pryelluw 2y agoMind sharing what libraries you use ?
- Aeolos 2y agoNot the same poster, but I am using Axum (webserver) + Maud (templating engine) + SeaORM (db adapter) + HTMX and I'm finding the end-result highly productive. Even though Rust is more verbose, and SeaORM has a few quirks, I am making faster progress in Rust than my existing mature Typescript + Node + apollo-graphql + ReactJS setup. Once I was over the initial setup & learning curve (about a week), I find myself able to spend more time on business logic and less time hunting runtime bugs and random test failures. There's something almost magical about being able to refactor code and getting it up and running in a matter of minutes/hours, compared to days for similar operations in Typescript. It's definitely still a young ecosystem that desperately needs a Django equivalent (loco.rs is worth keeping an eye out, but it's not there yet.) But I'm willing to tackle a bit of immaturity & contribute upstream to avoid the constant needless churn of the js world.
- the__alchemist 2y agoFor web? Django.