News for hackers. Stuff that matters.
Re:Ask HN: Best way to learn modern C++? by leetcrew on Wednesday March 07, 2018 @09:32PM (#16541813)
if you aren't already very familiar with c, i would say the learning curves for c++ and rust are pretty similar. it will take you longer to get stuff to compile in rust, but correcting instances of undefined behavior in c++ can also take a long time in c++.
Re:Ask HN: Best way to learn modern C++? by cpburns2009 on Wednesday March 07, 2018 @10:07PM (#16541981)
I know enough of the basics of C and C++, and their standard libraries to shoot myself in the foot with, and I'm sure invoke undefined behavior in the process (I do realize they are separate but related languages). Rust on the other hand appears to be a completely different paradigm from my primary experience which is in managed languages (e.g., Python, Java, etc.). In particular the borrow checker, while a marvelous idea, I think would pose a quite the challenge to get accustomed to.
Re:Ask HN: Best way to learn modern C++? by leetcrew on Wednesday March 07, 2018 @10:16PM (#16542027)
it's really not that bad. for a beginning programmer, the places where you would struggle with the borrow checker in rust have a lot of overlap with cases in c/c++ where you would struggle to fix all the errors reported by valgrind.