512
Rust sounds awesome but isn't it really hard? I don't think I'm smart enough for it.
I thought that at first too, but you get used to it very quickly. You won't even really need the most complex parts for most stuff, I've been writing rust for ~3 years now and I can't remember the last time I used lifetimes for example. I wouldn't really recommend learning rust as a first language since it has some very unique concepts, but if you already have programming experience (which I'm assuming you do) you're definitely experienced and smart enough to learn it :)
What kind of programs do you write in Rust?
I use it for almost anything that it works with, except maybe web stuff. If I want to write a project, I'm most likely gonna use Rust for it. I've done web servers, cli tools, graphics/"game dev", a Listenbrainz discord RPC daemon (tho that's broken now), and a library for actix session using surrealdb that's actually got some users for some reason. Oh and web stuff is absolutely possible, but with WASM having to use glue JS for DOM calls, u get all the negatives of using a technology for something unintended without any of the benefits.
meow?
How did you learn Rust? Do they teach it in school?
oh hell no, I'm german, we're barely learning java here. For rust I actually read the book before anything else and just copied the example's until I kind of got it. I would still recommend reading it for rust unique concepts like ownership, enums, error handling and fearless concurrency, but If you already have programming experience the compiler has incredibly helpful error messages that make just trying to write stuff probably the best way to actually learn it.
What do you like about rust?
The type system. Memory safety is probably what you hear most about rust, but that's (for me at least) mostly a side effect of it's incredible type system. Not having null, rust's powerful enums and traits make life so much easier. If you get data from the function, you never have to worry if it's different to what the function says it might return, it will ALWAYS return data in the correct format and you WILL have code to cover every single case of that data. I also love Rust's incredible range of "level", going from interacting directly with hardware to writing web servers like you'd do in javascript through libraries like actix_web. Now granted, if you're going to the lowest levels of rust by using unsafe, you lose a lot of the guarantees that the type system normally provides, but even unsafe Rust still has some of the strictest memory management and typing rules for low level programming languages. The ecosystem is also pretty nice, with major crates already established for most problems you'd need a library for. I also feel like I actually prototype faster in Rust than in other languages that are supposedly easy to throw a prototype together with, but this may just be a case of my brain being to oxidized to write hacky code.
Retrospring uses Markdown for formatting
*italic text*
for italic text
**bold text**
for bold text
[link](https://example.com)
for link