this post was submitted on 22 Oct 2023
37 points (95.1% liked)

Rust Programming

7731 readers
1 users here now

founded 5 years ago
MODERATORS
 

In practical perspectives, I'm mostly concerned about computer resources usage; I have computer resources constraints. So using Rust would benefit on that. But it is for a Web application backend. So, is it worth it having to learn Rust + Tokio + Axum, ... in this specific situation? Also, that this is mostly for initially prototyping an application. Also considering if I add developers in the future, they would most likely not be familiar with Rust, but with more popular frameworks such as Node.

you are viewing a single comment's thread
view the rest of the comments
[–] nous 1 points 11 months ago

If it’s a simple CRUD backend + database, then there’s really no reason to use Rust except if you just want to.

What? There are loads of reasons beyond just want preformance. Rust has been voted the most loved language in stackoverflows survey for many years now - that alone is a good enough reason to use any language: because you like it. But aside from that, rust programs tend to have far fewer bugs in them and cause far fewer problems in production environments. Rust programs are far easier to refactor, especially than loosely typed languages like JS and Python, as the compiler will tell you everywhere you need to update. And many more reasons why you might want to use rust.

it’s really uncommon to need to write a backend in Rust over something like JS or Python

It is really uncommon to need to write a backend in any language. Most languages can do it just fine and there is never really a need to pick one language over another. You can write a backend in any main stream language you like, including rust. And rust gives plenty of reasons why you might want to pick it over Python or JS.

Yeah it is not a language for everyone. And there are also plenty of reasons to want to pick other languages - its learning curve is a big one. But acting like there is no reason other than performance to pick rust over any other language is just plain wrong.