Live data from Hacker News

How to Learn Modern Rust

github.com

31–40 of 67 posts

Re: How to Learn Modern Rust

#31
post #25

Is Rust old enough for there to be a 'modern' Rust?

sort of? when i first learned it there was no async/await, no `?` operator for simplifying error handling, and lifetime elision was a whole other story, and you seemed to need lifetimes for any reference (can't remember but it's much better now). But is that really enough change for a new kind of rust (instead of just say, learning async rust vs normal rust?). not sure.

Isn't this what "editions" are supposed to handle, in part?

Re: How to Learn Modern Rust

#33
post #31
post #25

Earlier quoted context omitted.

sort of? when i first learned it there was no async/await, no `?` operator for simplifying error handling, and lifetime elision was a whole other story, and you seemed to need lifetimes for any reference (can't remember but it's much better now). But is that really enough change for a new kind of rust (instead of just say, learning async rust vs normal rust?). not sure.

Isn't this what "editions" are supposed to handle, in part?

Editions are only necessary for otherwise-backwards-incompatible changes, to avoid breaking existing code. Even relatively major language features like the ? operator were shipped without an edition bump. But for example I think the await keyword itself was added as part of an edition, because it was incompatible with existing code that had a method named await.

The messaging around the 2018 edition was a little different here, with some attempts to use the edition release as an opportunity to advertise and summarize all the features that had shipped since 2015. But I think folks decided that was confusing, and with the 2021 edition the messaging was toned down.

Re: How to Learn Modern Rust

#34
I love Rust and this is a great resource that I will certainly refer too, but I wonder if there is a little too much Rust language anxiety since we have a so many articles on "how to X in Rust". Doesn't that point to some complication if the thing being implemented is necessarily so tightly coupled with the language its implemented in (ie in a Write TCP in Rust type resource) that you need a special resource on how to to do it? There are some exceptions where like trying to do Linked Lists in Rust where the language will do everything it can to stop you, merits its own article.

Re: How to Learn Modern Rust

#35
post #31
post #25

Earlier quoted context omitted.

sort of? when i first learned it there was no async/await, no `?` operator for simplifying error handling, and lifetime elision was a whole other story, and you seemed to need lifetimes for any reference (can't remember but it's much better now). But is that really enough change for a new kind of rust (instead of just say, learning async rust vs normal rust?). not sure.

Isn't this what "editions" are supposed to handle, in part?

[deleted]

Re: How to Learn Modern Rust

#36
I'd be really interested in a series that would go over how you might write code in one language (say c++, java, python, whatever), how you might try to write it in Rust and the problems it entails, and then how to write it properly.

I haven't written Rust in 3-4 years, and trying to get back into it is painful.

Re: How to Learn Modern Rust

#37
post #30

This list undoubtedly took a lot of effort to compile, but I fear it might intimidate a newbie. I’d say the guide to learn modern rust could be much simpler - read The Book, write some code, and listen to Clippy (the linter) and apply rustfmt regularly. Almost all Rust code out there looks similar to each other because they pretty much follow this process - follow the standard linter and code formatter. The best part…

Four : Rust is what, less than a decade old? Rust itself is modern, there's no 'old' or 'ancient' rust, it's all modern, no?

Re: How to Learn Modern Rust

#39

This looks like a great resource, starred and upvoted. I'm planning to learn Rust next, going to start in a week after a job interview I had already lined up at Google. I worked with many languages professionally (JavaScript, TypeScript, Java, Python, Go, and now Dart) and many others at the university (C, C++, C#)... ...and Rust is very appealing to me. It's a modern language where the dev tools are straightforward,…

Most Rust jobs are in the blockchain space, which is unfortunate for those uninterested in blockchain technologies.

My impression is a bit different. I know a bit of Rust, and used to know C++98 inside out, but moved to more functional languages 15 years ago.

I recently added a Rust keyword to my LinkedIn profile and Who's Hiring threads, just to test the waters. Many EU companies of all sizes got in touch with really interesting proposals.

It's a systems programming language, so there are lots of problem domains it can cover.

Re: How to Learn Modern Rust

#40
post #30

This list undoubtedly took a lot of effort to compile, but I fear it might intimidate a newbie. I’d say the guide to learn modern rust could be much simpler - read The Book, write some code, and listen to Clippy (the linter) and apply rustfmt regularly. Almost all Rust code out there looks similar to each other because they pretty much follow this process - follow the standard linter and code formatter. The best part…

Four : Rust is what, less than a decade old? Rust itself is modern, there's no 'old' or 'ancient' rust, it's all modern, no?

There is Rusty Rust and Shiny Rust...
Post reply on HN