News for hackers. Stuff that matters.
Re:Ask HN: Best way to learn modern C++? by pjmlp on Wednesday March 07, 2018 @09:00AM (#16536336)
- Tour of C++ (http://www.stroustrup.com/Tour.html)

- Principles and Practice Using C++ (http://www.stroustrup.com/programming.html)

- From Mathematics to Generic Programming (http://www.fm2gp.com/)

- The Scott Meyers books

Some of the Bjarne Stroustrup videos,

"Learning and Teaching Modern C++" - https://www.youtube.com/watch?v=fX2W3nNjJIo

Some of the Herb Sutter videos,

"Writing Good C++14... By Default" - https://www.youtube.com/watch?v=hEx5DNLWGgA

"Back to the Basics! Essentials of Modern C++ Style" - https://www.youtube.com/watch?v=xnqTKD8uD64

Some of the Kate Gregory videos,

"Stop Teaching C" - https://www.youtube.com/watch?v=YnWhqhNdYyk

"10 Core Guidelines You Need to Start Using Now" - https://www.youtube.com/watch?v=XkDEzfpdcSg

"It's Complicated" - https://www.youtube.com/watch?v=tTexD26jIN4

Re:Ask HN: Best way to learn modern C++? by bloodorange on Wednesday March 07, 2018 @10:59AM (#16537247)
I agree with this completely :)

I would also like to add that it helps to read "The Design and Evolution of C++".

I found that I plateaued early in my C++ journey. However, I was always reading from the experts and it really helped to read material from Dr. Stroustrup. Once I began to see the common thread behind what he was saying and understood why some things were the way they were, it helped understand when it's a good time to use/not-use certain things. This helped break past that barrier and to improve my skill further.

Also, it helped to write a _lot_ of c++ code and think about how that could be better.

I'm afraid I didn't read a tonne of good C++ code in that period but somehow, I managed to keep growing and at some point, it became my "go to" language and I really started to like it.

Long story, short: Read books from the experts, esp. Dr. Stroustrup.

Re:Ask HN: Best way to learn modern C++? by krylon on Wednesday March 07, 2018 @11:25AM (#16537428)
> I would also like to add that it helps to read "The Design and Evolution of C++".

I think that book is worth reading even to people who have no intention of going anywhere near C++, as long as they are interested in programming language design and evolution. I wish there were more books like this one to explain the kind of thinking that went into the design of a language and to tell its history.

Re:Ask HN: Best way to learn modern C++? by vram22 on Wednesday March 07, 2018 @12:16PM (#16537864)
Agreed.

I had commented on the book on HN about a month ago:

https://news.ycombinator.com/item?id=16275341

Excerpt from it:

"I found that book very interesting in many regards. I had bought and read it several years ago (out of interest, though I have not worked on C++ professionally).

Stroustrup goes into a lot of details about the reasons for many design decisions in the language."

That's one of the reasons that make the book interesting. He even goes into human and cultural aspects of programming.

Re:Ask HN: Best way to learn modern C++? by scott_s on Wednesday March 07, 2018 @01:58PM (#16538815)
Agreed on D&E, but I think it really does need an update now.
Re:Ask HN: Best way to learn modern C++? by cbHXBY1D on Thursday March 08, 2018 @12:29PM (#16545946)
I would love a book similar to C# In Depth but for C++. The book takes you on an evolutionary tour of C#s features, version-by-version. One of my favorite programming books of all time and a good read even for someone who doesn't program in C#.
Re:Ask HN: Best way to learn modern C++? by krylon on Thursday March 08, 2018 @01:07PM (#16546251)
I have been using C# at work for a little while now, and I am starting to like it. Thanks for the suggestion!
Re:Ask HN: Best way to learn modern C++? by vram22 on Friday March 09, 2018 @03:34PM (#16554769)
Yes, it is quite some years since it was written.
Re:Ask HN: Best way to learn modern C++? by humanrebar on Wednesday March 07, 2018 @09:24AM (#16536507)
I'd add the CppCoreGuidelines to the list: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppC...

It's a lot of the content in the above but crowdsourced, open for PRs, searchable, and readable from the browser.

Re:Ask HN: Best way to learn modern C++? by alexhutcheson on Wednesday March 07, 2018 @10:01AM (#16536812)
Abseil C++ Tips of the Week are also really good: https://abseil.io/tips/
Re:Ask HN: Best way to learn modern C++? by zerr on Thursday March 08, 2018 @12:27AM (#16542503)
Are these tips mostly "Google-style" C++?
Re:Ask HN: Best way to learn modern C++? by i45_n5 on Wednesday March 07, 2018 @02:22PM (#16539023)
As for "Stop Teaching C" video one should also consider this book https://www.amazon.com/Accelerated-C-Practical-Programming-E... Alas, it is c++03. On the other hand it's relatively thin and it begins with the standard library (std::vectors, std::sort, std::string) from the first chapters. So I guess it was the first good book that didn't begin with C language from the start.
Re:Ask HN: Best way to learn modern C++? by colin_mccabe on Wednesday March 07, 2018 @04:56PM (#16540303)
Good to see that three decades later, C++ still has a massive inferiority complex about its older brother, C.
Re:Ask HN: Best way to learn modern C++? by pjmlp on Thursday March 08, 2018 @02:20AM (#16542904)
It is not an inferiority complex, rather to stop people learning about writing bad code, open to security exploits by default, something that C is pretty good at.
Re:Ask HN: Best way to learn modern C++? by boblivion on Wednesday March 07, 2018 @12:27PM (#16537974)
I'd like to recommend Jean Parents talks: https://www.youtube.com/watch?v=QGcVXgEVMJg&list=PLiWEEi8ezR...

They are truly great.

Re:Ask HN: Best way to learn modern C++? by frankzinger on Thursday March 08, 2018 @12:18AM (#16542463)
Sean Parent, that is.
Re:Ask HN: Best way to learn modern C++? by se30b on Wednesday March 07, 2018 @12:46PM (#16538173)
Would not recommend Principles and Practice Using C++, it is a fluff loaded book seemingly made to sell to university students.
Re:Ask HN: Best way to learn modern C++? by bewuethr on Wednesday March 07, 2018 @01:08PM (#16538393)
I think it's a great introduction to Programming, but if you already know some other language, it tends to be verbose - but Stroustrup always tends to be verbose. I, for one, really like his style.
Re:Ask HN: Best way to learn modern C++? by zerr on Thursday March 08, 2018 @12:29AM (#16542512)
I used to like Bjarne's style when I was just starting, but nowadays it seems way too verbose. Even talks, you can "compress" his 1+ hour talks to 15 minutes, lossless :)
Re:Ask HN: Best way to learn modern C++? by jasonx1e on Wednesday March 07, 2018 @05:12PM (#16540451)
Is there a progression to this one might follow?