Tbh I think Rust is way easier than people make it out to be You can literally learn it in 2 weeks What I did was I took 15 minutes a day to solve a programming puzzle in Rust After 2 weeks I basically had memorized almost all the patterns to solving borrow checker errors
Working with the borrow checker is 90% pattern matching on previous borrow checker problems you’ve fixed At first it requires a little more cognitive resources But after a while it’s basically a memorization problem
@zack_overflow 100% Rust is intuitive by design which leverages our pattern recognition algorithms. One of the easiest languages to learn due to no unexpected behaviour
@zack_overflow Rust was pretty hard for me to learn, but I think hardwiring my brain into thinking in C for a decade or so was the main reason. Had to unlean some things to really master Rust
@zack_overflow 😂 I have never used lifetime when solving leetcode problems in Rust
@zack_overflow It's easy because the compiler literally just tells you what you did wrong and precisely how to fix it
@zack_overflow What I don’t like is all the weird library APIs you find in Rust, just to look smart
@zack_overflow Definitely not as hard as people think it is. There is a learning curve because you have to actually think about your code but that’s a great thing and will make you a better programmer at other languages too.
@zack_overflow copilot + rust analyzer (thats how I am learning now ) Claude to ask questions in case you run into issues
@zack_overflow when i was first learning rust I did the very first AoC 2016. it worked out well, still have gaps when i tried reading the rustonomicon. you can get very far just using safe rust.
@zack_overflow You can learn most things in two weeks! Only things you need are usually the prerequisite knowledge and the willingness to struggle.
@zack_overflow agree. the really nice part is that once you have internalized the notion of "where is my data living" and "how long does it live" it transfers to other languages as well.
@zack_overflow Everything seems hard till it becomes popular enough to be taught in code bootcamps Reality is that everything is easy to learn & hard to master
@zack_overflow I completely agree with you. I mastered the technique of piercing my eyeballs with hot pins. I practiced everyday for 10 days and it was precisely what I didn’t want to do so I used Go lang instead and completed my application. The end.
@zack_overflow Tbh, rust is way easier than python or its counterpart C++. What makes it hard is the unsafe part and its unique design patterns.
@zack_overflow I think 20-30% of people hit the same problem where the first big thing they try to make in Rust is basically a graph. Linked lists are a special case of this, and games also tend to do it. You can get very stuck doing this in Rust, and the compiler's hints can be wrong.
@zack_overflow Yeah, especially for someone already proficient at C. There is just a few syntax to learn. When coding in C you already borrow check in your head, so having it done by the compiler adds no cognitive overhead.
@zack_overflow Rust was insanely hard for me to learn. I think I've got the hang of it now, but it was a painful journey. Looking back, I should have just read the rust book. I was so used to just winging it when learning languages, but that didn't work for rust.
@zack_overflow rust is not difficult and coding in rust feels like pair programming. though the last time i did was pre gpt era
@zack_overflow I think borrow checker teaches/forces you to think about data ownership. After internalizing that, you fight/interact with borrow checker much less.
@zack_overflow True – this, however, requires that you actually understand what you are doing, which most people don't. And then they complain about how knowledge that was commonplace CS 101 around 20-30 years ago (such as memory layout) is "HARD!!!". -.-
@zack_overflow @seanbax Frankly, if you already followed the C++ core guidelines then you already had rust lifetimes down. I was easily productive in rust within a couple of hours and had it down to a very high level within a couple of weeks, pretty much replacing my C++ usage at that point.
@zack_overflow How should I learn java script... I know html and css basics
@zack_overflow If Go is better for asynchronous, what's the best place for Rust?
@zack_overflow What. So. Let me get this straight. The entire language is just making the compiler happy when you write unsafe code? I think there's more than that.
If you like Rust et WASM you may like how the tech stack behind @MultiversX blockchain ! The tech they are building is awesome, they resolve the blockchain trilemma through sharding, and they have a particular attention to fund’s users security (no wallet drain possible, MEV not worth it, can literally leak your seed phrase without issue thanks to a 2FA authenticator) If you want to learn my I advice you reading or talking to @SasuRobert
@zack_overflow I guess people are comparing rust learning curve to things like go that you can pickup almost immediately. And getting intuition with the rust borrow checker in 2 weeks is pretty good, but I think rust has a lot more aspects than that.
@zack_overflow I do agree it's easier than what is generally perceived. Could be that majority of people aren't comfortable with environment outside of the garbage collector. Just gessing tho..
@zack_overflow I’m actually on the fence between Rust and Zig. I’ve been a professional Go dev for almost a decade. I know Rust will have more career opportunities but that’s not the main factor in learning a new language for me