Relearn C++

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

Relearn C++

Post by Rackle » Tue Oct 24, 2017 12:20 pm

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++.
0 x

hyyou
Gremlin
Posts: 166
Joined: Wed Feb 03, 2016 2:24 am
x 6
Contact:

Re: Relearn C++

Post by hyyou » Sat Nov 04, 2017 12:02 pm

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)
0 x

User avatar
Ybalrid
Halfling
Posts: 89
Joined: Thu Jul 10, 2014 6:52 pm
Location: France
x 28
Contact:

Re: Relearn C++

Post by Ybalrid » Sun Nov 12, 2017 4:43 pm

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
0 x
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
Goblin
Posts: 297
Joined: Sun May 11, 2008 9:27 pm
x 9

Re: Relearn C++

Post by mrmclovin » 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
1 x

User avatar
Ybalrid
Halfling
Posts: 89
Joined: Thu Jul 10, 2014 6:52 pm
Location: France
x 28
Contact:

Re: Relearn C++

Post by Ybalrid » Fri Nov 24, 2017 1:11 pm

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!
0 x
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/

Post Reply