Live data from Hacker News

Ask HN: I whant to Learn C++ not Rust!!

news.ycombinator.com

21–30 of 40 posts

Re: Ask HN: I whant to Learn C++ not Rust!!

#21
post #15

It won't help you learn C++ from scratch, but once you know a bit about it, the Abseil tips published by Google are a remarkably useful resource to learn best practices and modern C++: https://abseil.io/tips/ They are one of the main tools used internally at Google to ensure engineers who have to use C++ stay on top of language evolution and avoid common pitfalls.

Quite good though it looks a bit orphaned. Saved for the future thanks ;)

Re: Ask HN: I whant to Learn C++ not Rust!!

#22
post #19

All of the resources I used to learn C++ are probably obsolete at this point, so I can't give any advice on how to get started, but I highly recommend reading Effective Modern C++ after you learn the basics, which covers a lot of best practices.

Effective Modern C++ was mentioned here and also is one of the best rated books out there, must buy it.

Thanks ;)

Re: Ask HN: I whant to Learn C++ not Rust!!

#24
post #10

I'm not a C++ dev, but I would recommend JetBrain's CLion IDE for C/C++ development. It has great integration with build tools, debugger, valgrind, iperf(for profiling). It's a bit pricy, but it's possible to redo the free trial indefinitely.

I am more of a CLI user I've been using neovim with coc for js, ts, python and even solidity development. I will try first to have things working in my usual dev environment, but thanks for the suggestion I've heard good things about CLion and could probably get a free licence.

For vim, many of my coworkers love YouCompleteMe, which provides IDE-like autocompletion and more. I don't use autocompletion much even in an IDE, so I mostly stick with ctags in vim to let me jump to definition of functions/variables/classes, etc.

Re: Ask HN: I whant to Learn C++ not Rust!!

#26
Which C++ do you want to learn? There’s a lot of history there. I’d look at various C++ libraries over the years written in the different dialects. C++ has so many variants it’s really hard to say it’s a single language as each one reads so differently. It’s like saying English is a single language without understanding there are wildly different dialects and meanings to the same thing.

Re: Ask HN: I whant to Learn C++ not Rust!!

#27
post #26

Which C++ do you want to learn? There’s a lot of history there. I’d look at various C++ libraries over the years written in the different dialects. C++ has so many variants it’s really hard to say it’s a single language as each one reads so differently. It’s like saying English is a single language without understanding there are wildly different dialects and meanings to the same thing.

I guess I will deal with that once I start 'mastering' the basics, for the moment anything good that covers C++17 suits me.

Re: Ask HN: I whant to Learn C++ not Rust!!

#28
Can someone share how modern C/C++ build systems work?

Part of the reason I’ve gravitated towards Rust as my system’s language is because every time I look at a large C++ project there are CMake / Automake / Make definitions that are really hard for me to read and understand. Some of them even seem to use symbols I can’t find in these tools’ manuals.

Re: Ask HN: I whant to Learn C++ not Rust!!

#30
post #29

Herr are some great resources: https://en.cppreference.com/w/ https://www.learncpp.com/ https://hackingcpp.com/ Books: A tour of C++ 2nd Ed by Bjorne Stroustrup covers C++17 and a new version is in the works to cover C++20 and maybe 23. https://nostarch.com/cppcrashcourse

https://hackingcpp.com/ looks promising.
Post reply on HN