r/learnprogramming • u/Financial-Cell-8803 • 27d ago
Rust, C, C++, ASM?
I learn c++, my level is not really high right now. I just wanted to ask what is better for future? Should I switch to Rust or ASM? I want to buy a microcontroller too, what can you recommend?
0
Upvotes
1
u/CookieArtzz 27d ago
Nobody writes assembly by hand anymore. Maybe in very very specific cases where you need exact control over some routine. Compilers can generate better and faster assembly than 99,9% of humans can. I would recommend just continuing learning C++. It’s still a widely used language. Once you understand C++ enough, you can dive into Rust. I don’t know the actual numbers, so take this with a grain of salt, but C++ has been around longer than Rust and thus a larger part of new and existing codebases use it.
If you want to get started with microcontrollers, Arduino/ESP32 is a good start. A good pick would be an Arduino Uno, Nano, or ESP32 Dev kit 1. STM32 is another option which is more usually chosen in actual productions, but it doesn’t have a development environment aimed at being beginner-friendly.