Page 1 of 1

Relearn C++

Posted: Tue Oct 24, 2017 12:20 pm
by Rackle
Hello,

I joined 12 years ago but work and life got in the way and I had to move on to other programming languages. Surely C++ has evolved in the last 10 years, and I've forgotten a lot/all.

My plan is to pick up a book to relearn C++ and creating a little game with Ogre feels motivating (even if unfishined). I was wondering if there was anything I should be aware of? I'm assuming that learning from the most recent books is the way to go in order to learn all the cool new toys.

Any book recommendations? Keep in mind that I already know how to program so want to avoid books that spend half their pages on teaching basic programming concepts. All I really need to learn are the keywords and best practices of C++.

Re: Relearn C++

Posted: Sat Nov 04, 2017 12:02 pm
by hyyou
I learned C++ less than 5 years ago. I also want such book you mentioned.

Here is a to-look list :-
  • std::unique_ptr : Many internet random guys suggest that it is not to be missed.
  • lambda function : a very easy to use function inside another function "[&]"
  • std::function : a very poor performance callback that is very easy to use.
  • std::mutex : A multithread lock. I don't use it. It is easy to use.
  • SFINAE : A bad practice that is pure awesome.
  • ideone.com and coliru.stacked-crooked.com : popular C++14 online compilers
  • darksylinc's Ogre 2.1 tutorial : viewtopic.php?f=25&t=92874
  • Kinslore's Ogre Hlmsground : viewtopic.php?t=83763
  • Entity component system : https://www.raywenderlich.com/24878/int ... e-in-games (not C++, not care performance, but very good for beginner)

Re: Relearn C++

Posted: Sun Nov 12, 2017 4:43 pm
by Ybalrid
There's a series of videos with Kate Gregory on the Microsoft training thingy that present "modern" C++ from the beginning. She's quite the advocate of teaching "C++" as a language, not an extension of good old day's C.

It should be quite easy to follow, and starts with the fundamentals. Even if you know theses things there are a good refresher. There's like, a day worth of video there, so enjoy, even if you're not on the Microsoft platform : https://mva.microsoft.com/en-US/trainin ... 5104984382

Re: Relearn C++

Posted: Fri Nov 24, 2017 1:02 pm
by mrmclovin
Here are some talks from Herb Sutter that I liked, and that you may find interesting:

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


and

"CppCon 2016: Herb Sutter “Leak-Freedom in C++... By Default.”
https://www.youtube.com/watch?v=JfmTagWcqoE

Re: Relearn C++

Posted: Fri Nov 24, 2017 1:11 pm
by Ybalrid
mrmclovin wrote: Fri Nov 24, 2017 1:02 pm Here are some talks from Herb Sutter that I liked, and that you may find interesting:

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


and

"CppCon 2016: Herb Sutter “Leak-Freedom in C++... By Default.”
https://www.youtube.com/watch?v=JfmTagWcqoE
These two talks are great!