Hacker News new | ask | show | jobs
by mr_00ff00 1110 days ago
+1 and I say this as a rust fan.

The rust programmers that learned C first always have very elegant solutions and have the least issues in their unsafe blocks.

C to learn how memory works and how to manage resources, then Rust to understand how to use a higher level systems language for more productivity in places where it helps.

I work as a C++ dev and there are jobs in it, but unless you are trying to work a C++ job, the other two are wayyy better.

1 comments

Another rust fan here (with 3 years experience writing it full time at this point). I agree with all of this.

C knowledge also helps to understand what rust's borrow checker is actually doing. And it will teach you what Box / Rc / etc are for. Its surprisingly easy to write rust code that Box everywhere, and runs very slowly in practice. (I've seen rust programs run slower than their javascript equivalents). Learning C first will give you the right knowledge base to appreciate rust and use it well.