Rust is my first low level language

Unlike most people here, I have not done C++ or C or Java or C# or any other low level language before... I jumped directly from Javascript/Typescript to Rust, Advice for me?? Also what should be my approach to cover topics like DSA and Leetcode, considering I have no intent to learn C++ or Python in the next 8 months atleast

1 Like

Read the Rust book. Try out the code. Write some Rust. It likely a good idea to reimplement some not so big and complex thing you have done before in Rust. Learning by doing as it were. If you get stuck you can always ask about it here.

Certainly no need to get into C++ or Python first.

I'm not prepared to categorise Rust as a "low level" language. I have written much Rust code that looks almost like JS or TypeScript.

4 Likes

Rust is not exactly a low level language, I would describe it as a high level language!

Although you can do low level things in it. But Rust manages a lot of things for you, especially memory and safe multi-threading.

There is also unsafe Rust, but you can probably forget about that for many months or even forever.

2 Likes

The very first project I did in Rust was rewriting a small JS-based video game I made. It went well. I had such a blast with the compiler error messages compared to the silence of JS/TS.

Of course, I didn’t know how to use very much of Rust (not even after finishing that project), but it was a start.

1 Like

A well trodden path - you belong to the majority. According to this review:

  • 41% of Rust developers consider themselves experts in dynamically typed languages (JavaScript, Python, PHP, etc.).
  • 27% consider themselves experts in statically typed object-oriented languages with garbage collection (Java, C#, Go, etc.).
  • 20% consider themselves experts in languages with manual memory management (C, C++, etc.).
1 Like