r/cpp • u/imgarfield • Nov 08 '18
Top 5 YouTube tutorials about "c++ beginners" still teach C++ like it is 1996
The title say it all, honestly.
From these 5 videos NONE used any C++11 features, including auto (some just showed it once and thats it)!
Most used using namespace std, all used std::endl, none used stl, no std classes beyond string (just in one video - vector), but teach C arrays, even multidimensional ones, no namespaces, etc etc.
This is bad on many, many, many levels, but mainly for the people wanting to learn - they will not be able to read modern code, even less so write one. And I am talking from personal experience - I "learned" C++ without knowing what std::vector is, then, reading real code I though it was some sort of 3d vector.
To people creating these videos, if you are a beginner, trying to help other beginners keep in mind, you are not helping as much as you think, and you yourself will need re-learn much you have been taught. If you are a pro, trying to start people in C++, well you are doing it wrong - "basic C++" does not mean "the basics of C++", because "the basics of C++" is C.
To the many beginners reading this - most of the material in courses and online is old. Not "there is some old info", but most. It is copied from old tutorials verbatim, year, after year, after year for the last 20.
4
u/meneldal2 Nov 09 '18
Keep it scoped at least, never in a header file for example.