Ask HN: Best way to learn modern C++?
686 pointsDo you have some good advice or know any useful resources to learn in a proper way how to code in C++? For the context, I know some C, but C++ seems a different kind of beast, and it's easy to get lost in the huge variety of features and libraries it offers.
Comments (173) 47 threads
Earlier commentsYou should check out Rust, it aims to replace C++ and do a better job in memory management, and developer experience in general (cross-platform compatibility, package management, etc)
No one can replace it, but everyone has to try.
Continue this thread — 8 replies
Ada also had a shot, I think, but they screwed it up with no C compatibility and expensive SDKs - or something. For some reason, Ada is just not perceived as "cool". It actually seems like a pretty good language!
Continue this thread — 7 replies
SIMD, GPGPU, GUI, embedded platforms, iOS, Android, UWP, COM, certified compilers, ...
For example,
https://www.iar.com/iar-embedded-workbench/certified-tools-f...
Continue this thread — 2 replies
Continue this thread — 4 replies
To comment briefly on the learning curve, the trade off is basically, C++ is easier to get started, but harder on the high end. Rust is a bit harder for C people to get started, but then the high end is much easier. Rust’s curve is flatter, in a sense.
Oh and also: learning one will certainly help you learn the other in many cases. I advocate learning many languages :)
This week I’m visiting a ~700 person company in London that’s moving away from C and towards Rust. They’re not doing a Big Rewrite, obviously, so they still have quite a bit of C too. They chose Rust over C++ though. It always depends!
Especially the Rust borrow checker will make you mad in the first place, and then teach you something about memory management you will be able to use in C++. It really improves your mental model in places you didn't expect.
Continue this thread — 3 replies
Continue this thread — 1 reply
ftp://bitsavers.informatik.uni-stuttgart.de/pdf/borland/borland_C++/Borland_C++_Version_2.0_Getting_Started_1991.pdf (Read chapter 4 C++Primer. The hole folder is a rare jewel)
https://docs.microsoft.com/en-us/cpp/cpp/cpp-language-refere... Probably the best documentation of C++ by far.
P.S. If you are desperate on learning C++ I could give short course saving you time and money.
That's far from true today, and I'd even argue it hasn't been true since very early on. Simple example to prove my point: RAII.
"Object Oriented Programming puts the Nouns first and foremost. Why would you go to such lengths to put one part of speech on a pedestal? Why should one kind of concept take precedence over another? It's not as if OOP has suddenly made verbs less important in the way we actually think. It's a strangely skewed perspective." from https://en.wikipedia.org/wiki/Object-oriented_programming criticisms says a lot.
Continue this thread — 2 replies
All comments shown.
Couldn't load more comments. Check your connection and try again.