Learning Rust isn't hard!
Hi all, I'll start by giving some background about myself. I've been a developer for more than 7-8 years, started with C++ competitive programming, then turned into a full stack dev with React and Nodejs - and was doing full stack till 2021.
I was bored and wanted to go back to do some embedded and game development using C++, started again - went through a couple of books, cpp reference, learncpp.com and heck! C++ had so much new stuff and most of them were so hard to digest - ie c++17 and c++20 because of the lack of support of modules, concepts etc in gcc, clang and couldn't actually test those in a real project. Even having done competitive programming in C++, it turned out really hard for me to get my hands dirty over the new features.
I started seeing a lot of comparisons of Rust and C++ online, and at start I was just another C++ fanboy who didn't actually use Rust or tried to see what's about it that's making it receive so much hype and support. I tried to ignore rust and stuck with learning C++'s new concepts until I started working on a new project - which was a discord bot. I wanted to use c++ modules but couldn't because of lack of compiler support. I gave up and wanted to give Rust a shot.
I started with the Rust's book \~30 days ago - and I was awestruck with the quality of documentation. Everything was amazingly put up. The book is structured so well, that I always wish I started doing Rust years ago.
Another thing that I absolutely fell in love was cargo! Coming from npm background, cargo was so much helpful, and it was a very pleasant experience. Not to forget about the in built documentation generation!
It's been less than 30 days since I began rust, and I just finished writing my first application - a small socket.io clone with both the client and server. It has been an amazing experience so far and I can't believe I have made so much progress with Rust in such a short span of time.
I still wonder why people keep saying Rust's learning curve is high? It is definitely not. As compared to C++, rust's learning curve is no where as near as C++'s as of now. You get better performance by writing more readable and easy to understand code.
It is very very easy language to get used to if you have a prior programming experience. People complain about borrowing/ownership is hard - it's not. It's a simple concept explained really well in the rust's book. Also, lifetimes - it's another topic that people use to claim as a hard one. It's not, it's just a simple pattern that you get used to over time.
I have been loving Rust so far, and can't wait to do more Rusty things in the future with this beautiful langauge!