r/learnprogramming • • 5h ago

Learn rust

Could you tell me what the situation is with Rust? Is it worth learning, looking ahead to the next 5 years? Or would it be better to learn C instead?

4 Upvotes

14 comments sorted by

View all comments

Show parent comment

2

u/dmazzoni 5h ago

I basically agree with this take. I don't think it matters which order you learn them in.

Learning C and struggling with memory errors will help make it clear why Rust was invented.

On the flip side, struggling trying to get something in Rust to compile, when you know it's safe, will make you appreciate how simple C is.

In terms of career: even with as fast as Rust is growing, there's 1000x more C code out there than Rust code. Most jobs are in improving existing code, not writing new code from scratch. So the odds that you could have a job that involves writing Rust and never touching C is quite low. Most real-world jobs use multiple languages, and mixing C and Rust is quite common.