Live data from Hacker News

Becoming Rustacean: Resources to Learn Rust Programming

nativebyx.dev

1–10 of 48 posts

Re: Becoming Rustacean: Resources to Learn Rust Programming

#3
post #2

I really like the speed of rust. It’s very difficult to learn it though

As someone who came mostly from Python and some C: I must say the most difficult part was stopping myself from forcing aesthetical ideas of how to structure code from the other languages into Rust.

There are three points here:

- Rust lends itself to certain structures (that you might not be used to) and makes others very harder to pull off (that you might be used to). The trick is not try to do the latter when the former is perfectly fine. E.g. me trying to do object oriented programming in Rust, or starting off with a linked list as a C programmer

- Rust can be written on different levels. For example you can go for "perfect" code in terms of performance and dive into things deep or you can just not bother at all and do the totally naive thing and still end up with quite fast programs most of the time

- Rust has a type system that it strictly enforces. This makes some things harder, others simpler. Make sure to be aware what you can do with a type system and why it can be a good thing to have one.

Re: Becoming Rustacean: Resources to Learn Rust Programming

#6
post #2

I really like the speed of rust. It’s very difficult to learn it though

The trick to learning Rust is to first start learning C++; that way your motivation to learn Rust increases even further and you start getting the feeling that Rust is easy ;)

This is similar to the psychological trick of how an obese person, to make himself/herself feel better, stands next to an even more obese person :)

Re: Becoming Rustacean: Resources to Learn Rust Programming

#7
post #2

I really like the speed of rust. It’s very difficult to learn it though

Check out Odin, it's breath of fresh air, the syntax is minimal and well thought out, so unlike rust or zig (and much like jai*), things are consistent and make sense**.

(*) https://pixeldroid.com/jailang/overview/Features/Factorabili...

(**) https://www.gingerbill.org/article/2018/03/12/on-the-aesthet...*

Post reply on HN