News for hackers. Stuff that matters.
Re:The C juggernaut illustrated (2012) by Firmwarrior on Saturday February 04, 2023 @08:10PM (#34660468)
Man oh man. I realized I'd never even seen Rust code once in my life, so I loaded up some random Rust book and skimmed through it. I know HackerNews doesn't like half-informed angry opinions, so I'll just say "I really hope Rust never takes off" and leave it at that.
Re:The C juggernaut illustrated (2012) by steveklabnik on Saturday February 04, 2023 @08:25PM (#34660578)
Not everything can be everyone's cup of tea :)
Re:The C juggernaut illustrated (2012) by dralley on Saturday February 04, 2023 @08:45PM (#34660742)
What about your brief skimming turned you off?
Re:The C juggernaut illustrated (2012) by Gigachad on Saturday February 04, 2023 @09:45PM (#34661197)
Don’t worry, that’s the same amount of research done as all the other complaints about rust.
Re:The C juggernaut illustrated (2012) by FullyFunctional on Saturday February 04, 2023 @09:48PM (#34661223)
Your loss. I tried three times to learn Rust and I had plenty of doubts, but 3rd time I struck to it and it took maybe a year before I would reach for Rust before C (I have 40 years of C muscle memory so that's saying something). Some things _are_ awkward in Rust (eg. occasionally the explicit "a[x as usize]" casts are tiring), but the payoff is awesome.
Re:The C juggernaut illustrated (2012) by FullyFunctional on Saturday February 04, 2023 @11:07PM (#34661743)
ADD: what finally worked for me was to not read the book [linearly], but instead jumping between tons of sources, lots of exercises, and generally not stressing about getting everything in all the [ample] detail. And of course doing it and doing it every day. I definitely still have lots of holes (hello async) and I'm not shy about Cloning/Copying liberally unless it really matters for performance.