Rust is easy... (we make it hard)

preview_player
Показать описание
Rust is easy but understanding how everything works together is actually kind of hard, as hard as we've led ourselves to believe to. In today's video, I'll explain some of the various ways Rust makes coding super easy.

Chapters:
0:00 Overview
00:43 Trillion Dollar Mistake
2:23 Graceful Error Handling
5:13 Uncompromising Memory Safety
6:21 Effortless Building & Deployment
7:46 Newbies mistakes
9:02 Conclusion
Рекомендации по теме
Комментарии
Автор

📝Get your *FREE Rust training* : letsgetrusty.com/bootcamp

letsgetrusty
Автор

There is a distinction between "a language that is easy" and "a language that makes your life easy and avoid problems"
Languages like ocaml are far simpler because they have a garbage collector, you don't have to deal with lifetimes and borrow rules.
You can't claim that lifetimes and borrow rules are easy. They may be necessary and great (and at the end, maybe you love them) but not EASY

antoninperonnet
Автор

Small correction: unwrap_or does _not_ cause a runtime exception. It instead returns the provided value as a fallback. I think he meant "expect", which is like unwrap but provides an error message.

sapphie
Автор

Guys, once again, after 100 times mentioning it, " DONT FORGET THE BOOTCAMP "

ardawanx
Автор

Misleading title. Those features make the code safe but definitely not easy. Just read the rust book and start to code, no need for a bootcamp.

zomaarwat
Автор

1:42 that's amazingly funny; introduce a concept to avoid null pointer exceptions, but the very thing that was introduced can be null

maxrang
Автор

Learning TypeScript and some functional programming concepts before Rust made jumping into it WAY easier. The only major hurdle for me was lifetimes, and even then they weren’t that bad once I wrapped my head around the rules.

TagetesAlkesta
Автор

Rust is a beautifully designed language to solve the deep problems of the industry that we have learned over the past few decades. You must understand that Rust is not hard, It's just unfamiliar.

rouzbehsbz
Автор

Go does force you to handle errors, it literally doesn't compile if you don't handle the error returned. Where did you get that information? I guess you're talking without knowing what you say. Stick with what you used and know how it works

niculaelaurentiu
Автор

Rust really is a pretty beautiful mix of some of the best parts of ML-derived functional languages and fast, low-level systems programming languages.

ycombine
Автор

Ah, there it is.
This is just a sales pitch for your program.

khatdubell
Автор

how are options better than null if you have to check regardless? what makes writing a match any differnt than checking if a value is equal to null? You are literally just moving the problem elsewhere

Mariuspersem
Автор

They say it's hard but all you have to do is just keep going and searching stuff that you know what it is.

this_is_my_handle
Автор

Actually, in Go, you get a compile-time issue if you don't use the returned error value (handling it for example), and you have to explicitly specify that you are ignoring the error by naming it _ to not do anything with it

SpencerNold
Автор

Golang will tell you that err variable is declared but not used, so you should use underscore, which sounds explicit enough AND it is more convenient than calling yet another function on function return value

salty_cucumber
Автор

Rust gets error handling right? Technically it gets it "correct" perhaps, but far from getting it right. Almost every non-trivial Rust project relies on third party crate for error handling. That's kind of a black mark on a language getting it "right".

kurt
Автор

To those who came from JS and had a hard time learning Rust at first, I suggest learning TypeScript first to get to know some stuff you'll find in Rust. This worked for me.

spectralquill
Автор

Btw, did you create the Rust Developer Bootcamp, that will launch on August, 15.? Just wanted to know

skorp
Автор

After 6 years of functional programming combined with ranges-v3 in C++, I found it really easy to write idiomatic Rust code. Unfortunately is extremely hard the market that someone already has the skills. Job advertisers also get stuck in 2+ years previous production experience in Rust.

TrackballClick
Автор

Sorry, rust is not easy and if you think it is then your doing easy projects

larrybird