News for hackers. Stuff that matters.
Re:Rust from 0 to 80% for JavaScript Developers by tick_tock_tick on Sunday May 01, 2022 @01:47AM (#31222539)
I think Rust gets much easier when you understand it's the most or close to the most opinionated language ever made. If something is hard or feels really awkward to express it means you're "doing it wrong". A lot of classic solutions to problems that you've learned over your career are hard or impossible for Rust to validate. When you run into these hurdles you're supposed to switch to different style/solution rather then trying to fit a round peg in a square hole.
Re:Rust from 0 to 80% for JavaScript Developers by pkolaczk on Sunday May 01, 2022 @02:38AM (#31222754)
Yeah, this. Particularly when you come from a language that is heavy on using references like JS, Python or Java (and probably a good majority of languages with GC), you might get initially hard time with Rust. After I started appreciating pass-by-move, accepted occasional cloning and used references mostly for temporary, short-term borrows, suddenly it all clicked for me. The upside is that this way the code is actually much simpler than a spaghetti of cyclic references I got used to in big Java projects.