A Review of the Anti Rust article by a Rust Engineer
Вставка
- Опубліковано 7 лип 2024
- An article appeared recently online entitled:
"I spent 18 months rebuilding my algorithmic trading platform in Rust. I'm filled with regret" By Austin Sparks.
This article was picked up by ThePrimeagen, and he did a balanced review, I would highly recommend that you watch that if you haven't already.
However since that article was published, there has been a lot more context available and in this session we dig around a little more with to review this anti Rust article armed with this new information! - Наука та технологія
Wait, that guy used Strings for error handling? Yeah, probably should have spent some of those 18 month actually learning Rust.
I do not think he should be learning rust on the go!!
i disagree. you should but not for production code, just for personal learning projects
@@ballinlikebill8334doing it for production code is what "learning on the go" means. Else it's just "learning"
Advanced Rust is hard, especially if you are not trying to learn the advanced parts of the language but instead trying to make use of libraries or frameworks that do use the more advanced features. That said, if you took the same attitude with C++ you would probably end up with some very very bad code, but with Rust, if it compiles it usually works and most classes of bugs are simply caught by the compiler. Certainly, Rust was one of the harder languages I have tried (used for about three years, but still cant say I have 'learnt' it). The biggest problem we experienced though was that it is a constantly changing language and that combined with the frameworks we were using being in active development meant that we spent over 50% of our development effort just updating to newer versions of dependencies.
Your point at 12:09 reminds me of this Trailer Park Boys scene: ua-cam.com/video/-SkfTU-B1CY/v-deo.html
a curve is towards it
I'll never like the way Rust code looks. I like everything about Rust, but it is ugly as sin.
That's subjective and you have a right to dislike the look of the syntax, just as others have a right to like the look of the syntax. However objectively the type signatures are like that because they encode and pack a lot of information. Often time it boils down to familiarity, and it's no different to dynamic language users complaining that they don't like static types that have to be declared as it's too "noisy" or verbose.
I wanna learn Rust. Any tips?
I have an entire blog article dedicated to it: "So you wanna learn Rust?" link is here 👉 watthedoodle.com/tech/so-you-wanna-learn-rust/
@@watthedoodle Thanks!!
When I finally sat down and really got to understand how ownership and lifetimes work, I found it far mor easy to write Rust. Also go check out these resources:
"The Rust Book" - Safe Rust guide
"The Rustomnicon" - Unsafe Rust guide
"Learning Rust, With Entirely Too Many Linked Lists" - This will help you understand how pointers work, and why LL is a shitty data structure, especially in Rust
Start with sync code. And switch to async later if at all.
do you know the idiomatic way? i think that is a meme 🤣🤣
I didn't recall that meme! if it is a meme that wouldn't have been pretty cool to drop an overlay on the video to pay homage to it 😁