My first days with Rust from the perspective of an experienced C++ programmer (continued)

79 points Rough-Island6775 32 comments

Continuing: https://www.reddit.com/r/rust/comments/1jf52hf/my_first_days_with_rust_from_the_perspective_of/

Day 4

Using AIs with questions such as how do I do this and that in Rust describing things that I know are there makes the transition smooth.

What first seemed like elaborate syntax makes perfect sense and probably as good as it can be.

I will read the Rust book and the reference to get formally educated but for now AI acts as a tutor answering things that it has seen plenty of times, noob questions.

The binary is larger, as expected, primarily (I think) due to the initial data structure is built in a function instead of hard-coded as a global.

Somewhat larger binary is expected and acceptable due to the built in safeties of Rust.

Without AI the learning curve is a bit steep and for a programming noob is probably off-putting. For an experienced C++ programmer is just: "yeah, that's better" and it keeps giving me a tiny smile every time that happens.

I begin to understand the cult like following Rust has because once a learning step in the curve is taken it feels like there is no going back.

I have a lot to learn, but for now, for my toy bare-metal application, I feel that this is the way forward.

p.s. I was pleasantly surprised by how extensive the core library is and that it works in [no_std] builds.

Kind regards