Live data from Hacker News

Ask HN: How to refresh on modern features of C++?

news.ycombinator.com

11–20 of 63 posts

Re: Ask HN: How to refresh on modern features of C++?

#11
post #9

Just read the new edition of C++ Programming language by Bjarne Stroustrup ;) Some things are hard to come by in any shorter sources. And at times you have to dig into the standard. An example of rather obscure thing in C++ which changed in C++11 (sequencing): http://en.cppreference.com/w/cpp/language/eval_order And another thing which can be pretty confusing without carefully reading the standard. Copy elision vs mo…

Not to be disrespectful- but I want to learn more about C++ from anybody but Stroustrup. His writing (to me at least) always has the aspect of "nothing is wrong, and every compromise was picked correctly." I'd much rather read somebody like Meyers who will actually warn you away from some mal-features. And C++ is so large you really want a useful editorial view to any teaching.

Re: Ask HN: How to refresh on modern features of C++?

#13
post #11
post #9

Just read the new edition of C++ Programming language by Bjarne Stroustrup ;) Some things are hard to come by in any shorter sources. And at times you have to dig into the standard. An example of rather obscure thing in C++ which changed in C++11 (sequencing): http://en.cppreference.com/w/cpp/language/eval_order And another thing which can be pretty confusing without carefully reading the standard. Copy elision vs mo…

Not to be disrespectful- but I want to learn more about C++ from anybody but Stroustrup. His writing (to me at least) always has the aspect of "nothing is wrong, and every compromise was picked correctly." I'd much rather read somebody like Meyers who will actually warn you away from some mal-features. And C++ is so large you really want a useful editorial view to any teaching.

From such books I liked "Thinking in C++" which is a good intro, but there is no up to date version and it's missing details.

Re: Ask HN: How to refresh on modern features of C++?

#15
post #4

Herb Sutter, one of the most prolific C++ experts out there, recently gave a talk on Modern C++ [1]. In the beginning of his talk, he states that every C++ developer should read a "Tour of C++" [2] by Bjarne Stroustrup, the original designer of C++. I recently read it and it's great. The book has less than 200p, but still covers the most important parts of C++11, albeit not in great detail (the reader is pointed to "…

Bookmarking because I also plan on entering C++ soon. I really don't want to be too behind.

Re: Ask HN: How to refresh on modern features of C++?

#16

The first few chapters of The C++ Programming Language by Bjarne Stroustrup 4th edition go through a tour of C++11 that will quickly show you how to use modern C++ techniques. The rest of the book can be used as a reference to learn more about specific features.

Definitely this one, not only does he explains modern techniques he explains the rationale behind them, why they were added and how to use them without getting shot in the foot - emphasizing values over references and avoiding `delete`s.

Re: Ask HN: How to refresh on modern features of C++?

#18
post #6
post #4

Herb Sutter, one of the most prolific C++ experts out there, recently gave a talk on Modern C++ [1]. In the beginning of his talk, he states that every C++ developer should read a "Tour of C++" [2] by Bjarne Stroustrup, the original designer of C++. I recently read it and it's great. The book has less than 200p, but still covers the most important parts of C++11, albeit not in great detail (the reader is pointed to "…

cppreference.com is a good resource too. It's updated frequently. http://en.cppreference.com/w/

I can't stand that site. I try to use the old SGI stl reference whenever I can.

Re: Ask HN: How to refresh on modern features of C++?

#19
Watch the videos from GoingNative and CppCon. Speakers like Bjarne and Herb constantly talk about "whats new in Modern C++". Watch Andrei's talks for sure!

http://channel9.msdn.com/Events/GoingNative/GoingNative-2012

http://channel9.msdn.com/Events/GoingNative/2013

https://www.youtube.com/user/CppCon

Re: Ask HN: How to refresh on modern features of C++?

#20
I'm in the same boat and working through "A Tour of C++" by Stroustrup. It highlights the new features you're talking about with concise examples but doesn't flesh out the details. So you'll know that there's an often-better way to do certain things using the new language features. You'll need another reference for assistance with the details, often Stack Overflow examples suffice.

"Effective Modern C++" goes more into the details and is next on my queue.

I've done a bunch of Ruby, Java, and some Lisp programming since my last stint with C++. It feels like a whole new language.

Post reply on HN