Back in early 2000s, while I was in High Scool, straight after some Pascal, and some Visual Basic, I got introduced to a weird mix of C and C++ by a confused professor, and being taught that it was C++. I loved it anyway.
Skipping few years forward, I learned it properly at uni (where properly means being thought c++98 as if it was the modern c++), while on the side I was doing some php, ruby, python and Java, moving away from the lower level and up to an higher level of abstraction, who needs to play around with memory management in 2007-8-9 (can't remember the year exactly) right?
Still loved it.
Until 2020 hit, and I decided to learn to some some game development.
After a whole year and few interesting projects, I decided to go back to my roots, and re-learn again C++, after many years of working with higher abstraction/level programming languages, to try out some game engines eventually, and work on a possible C++ native version of some games ideas I have on a notebook since I was a kid.
Been reading how the language has evolved in the years, and yet still how divided the community is about tooling/build system/package management.
All of that make me want to learn rust (which I tried and I find a bag of wank syntactically speaking).
So that is why I want to ask you, beautiful people of Dev.to, if you have any suggestions on path to learn the most modern C++ patterns, to be precise I would do a small list things I would love to know. (Just to let you know I use mostly linux, but I do own a Mac for work and a Windows pc too, so would be nice if you can keep that in mind, I would love to have my tooling multiplatform)
I do not care about basic tutorials, as I said worked with many languages and I did spent few days to refresh what I knew. But would be nice if there was a list of new cool features and how to use them with code examples (lambdas and the likes), or even a podcast/blog/youtube channel with nice tutorials about a bit more advanced topics.
Would be nice to know how to setup a good dev env on Linux/Windows/Mac. clang g++ cpp? which and why? Cmake? plain makefile? bash scripts to build?
Best (Free/Cheap) IDE? been trying VSCode (as I use it for everything else) and it is a bit iffy at times. I do not like Eclipse and I cannot use Visual Studio on Linux :'(
Best way to scaffold a project? Seems like there are millions of different options/opinions, would be interested into your personal experiences on those, and why having all in
src/and subfolders of that is better than having
/src/or whatever. Are there cli tools that generates projects structures for you that are standardish?
Package managers? I been looking into conan and some others I cannot even remember the name of. Are they necessary? I have seen around how cool the boost libs are and I wouldnt mind to have them installed on my pc and then link them while I build, but it sounds like a nightmare if I want to put my code up somewhere to have to add on the readme
Install this lib doing x and y before compilingrather than just having to run something like
conan install && cmake buildor whatever.
Is it good to use straight away C++20 or are there like 99% of the libs that do not support it? How to use different version in different projects? is it just that flag on compilation or do you need to install something like virtualenv in python or nvm for node?
Unit Test Libs? I saw that loads of people use that GTest something, are there other ones, that maybe are easy to get via a package manager and set just for your local project rather than machine-wide?
Code Generations via IDE, I had forgotten the .hpp contains declaration and the .cpp contains the actual implementation of a class paradigma, god it sounds quite annoying, are there IDE tools where you can just generate the code on the .cpp file after declaring the signature on the .hpp file?
How are you doing still working on C++ on 2021? Are you happy or do you wish you had done something else?
Do you think it is stupid to try to catch up on C++ on 2021?
Thanks everyone for reading this.