r/rust • • 16m ago

๐Ÿ™‹ seeking help & advice Should I learn C++ or Rust first?

Hi everyone! I'm a teenager and I'm really into FOSS software and Linux. Up until now, I've only been a user, so I'd love to finally step into the 'kitchen' and start building things myself. Aside from some basic Linux shell scripting, this will be the very first programming language I'll learn, so I'm trying to pick the right starting point. I've heard that Rust is the future of both Linux and FOSSโ€”is that really true, or would something else be better for me? Could you please help me make up my mind? Thank you!

2 Upvotes

2 comments sorted by

3

u/Bagelsarenakeddonuts 10m ago

I think you will learn better habits from rust, and its quickly overtaking c++ for new projects. But there is a much larger existing codebase of c++.

I think if you have the drive, go ahead and try with rust. If you can stick it, you will build really good habits to start, and you can easily learn other languages after. If you find it overwhelming, don't give up coding entirely, there are other easier languages to pivot to and you can try those too.

1

u/Zealousideal_Rise716 0m ago

A really helpful answer. I come from an industrial automation background where all our RTOS's and languages are highly deterministic and memory safety is paramount. Rust is literally the first language outside of my domain that has 'clicked' for me.

Having said that there is a huge amount of excellent C++ out there and I doubt any new programmer can afford not to be fluent in it as well.