Comment by ikkun

Comment by ikkun a day ago

5 replies

as a beginner rust programmer, I agree. it takes me way longer to parse someone else's rust code than it does for me to read C or C++, even though I have about the same amount of experience with them. in that example, I had to look up what "if let Err() =" does, because it's not intuitive to me. it seems like every time I read rust code, I have to learn about some strange feature that's probably convenient when you know it, but there's a billion of them and they add up to hard to read code until you've spent tons and tons of time with rust. it's just so much to memorize compared to other languages.

ben-schaaf a day ago

I have the opposite experience: C++ is what I have the most experience with by a very wide margin, but I find reading other people's rust code way easier than other people's C++ code. There's way more weird features, language extensions and other crazy stuff in C++ land.

  • johnisgood a day ago

    I think both Rust and C++ are behemoths. I do not even know what "proper" "modern" C++ is.

  • ikkun 19 hours ago

    I believe you, I haven't contributed a lot of C++ code and it's quite possible the projects I have contributed to (e.g. godot engine) just happen to be written very legibly.

piva00 a day ago

It reminds me the experience I had when working with Scala, I really tried to like it but the mind-boggling amount of features created similar issues.

It took me about 2 years to feel somewhat comfortable but I'd still run into code where someone decided to use their own set of unconventional favourite features, requiring me to learn yet-another-way to do the same thing I had seen done in other ways.

I just got tired of it, didn't feel more productive nor enlightened...

  • tormeh a day ago

    Don't understand this complaint about Rust, but I'll give you Scala. Never seen a language so finely tuned to empower architecture astronauts to make terrible decisions. And boy do they make terrible decisions.