Relearn C++

Get answers to all your basic programming questions. No Ogre questions, please!
Rackle
Gnome
Posts: 375
Joined: Sat Jul 16, 2005 1:42 am
Location: Montreal

Relearn C++

Post 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++.
hyyou
Gremlin
Posts: 173
Joined: Wed Feb 03, 2016 2:24 am
x 17

Re: Relearn C++

Post 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)
User avatar
Ybalrid
Halfling
Posts: 89
Joined: Thu Jul 10, 2014 6:52 pm
Location: France
x 31

Re: Relearn C++

Post 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
Ogre_glTF Ogre v2-1 GLTF2 loader : topic link github repo
BtOgre21 Fork of btOgre, for Ogre v2-1 : topic link github repo
OIS Current maintainer : Official repository
Annwvyn VR focused game engine using Ogre : https://github.com/Ybalrid/Annwvyn https://annwvyn.org/
mrmclovin
Gnome
Posts: 324
Joined: Sun May 11, 2008 9:27 pm
x 20

Re: Relearn C++

Post 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
User avatar
Ybalrid
Halfling
Posts: 89
Joined: Thu Jul 10, 2014 6:52 pm
Location: France
x 31

Re: Relearn C++

Post 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!
Ogre_glTF Ogre v2-1 GLTF2 loader : topic link github repo
BtOgre21 Fork of btOgre, for Ogre v2-1 : topic link github repo
OIS Current maintainer : Official repository
Annwvyn VR focused game engine using Ogre : https://github.com/Ybalrid/Annwvyn https://annwvyn.org/