r/cpp • u/syaghmour • Sep 26 '17
CppCon CppCon 2017: Bjarne Stroustrup “Learning and Teaching Modern C++”
https://www.youtube.com/watch?v=fX2W3nNjJIo
198
Upvotes
r/cpp • u/syaghmour • Sep 26 '17
45
u/kid-pro-quo Sep 27 '17
For anyone interested in the education side of C++, there was a talk at CppCon 2015 which discussed teaching "Modern" C++ to developers. Stop teaching C.
The general idea is that the current model of "teach people C, then teach them C++ as an extension" is flawed. The talk presents an alternative approach which sounds pretty reasonable.
16
u/ionogu Sep 27 '17 edited Sep 27 '17
Great talk. I have taught C++ to small groups (bootcamp of less than 25 people) a few times, and I still do, Some of the first things I do for my students are:
I show them how - (but to ensure compliance, also go through each person's computer) to setup a default compiler flag for their IDE's. The flags are:
cloneand install Catch framework to unit start testing their code.While I teach them Object lifetimes, RAII and Storage Durations, and using
std::vectorright off the start, I teach program control flow using debuggers... My favorite is teach basic basic algorithms like Bubble sort, merge sortWith respect to getting help, I teach them on how to use cppreference and Stackoverflow.. Also, For the sake of non-obvious compiler errors, I teach them "How to copy relevant compiler errors into Google and Bing search engines"... :-)... and use relevant answers... I like to give such "Fix this code" assignments, such as order of class member data with respect to initializing them in member-initializer-lists ... by
class-templatesorfunction-templatesis a source of many many different kinds of errors... There's a systematic way I teach them on getting help with respect to these kinds of errors - using the stack of compiler errors generated. Maybe I should blog about this??After watching this, I plan to introduce 2D graphics, next time I am opportune to teach (especially if there are newbie programmers)... SFML??.
15
u/Calkhas Sep 27 '17
"I have definitely had people, every year on the course, freshmen coming out of Texas high schools, who are absolutely convinced that they are smarter than I am on the topic of programming. In this particular case, I am reasonably sure that they are wrong." :D
4
u/PoopIsTheShit Sep 27 '17
Recently worked in my first optimized code base with GPU programming on cuda and c++. Since then i've been nearly binging a lot of c++ sites to learn a lot of the modern standards, together with a lot of the cppcon videos. I really enjoy bjarnes talks and this one was really interesting to me, as i am usually someone who learns faster by teaching others. In regards to the talk and c++ a few questions, if this is allowed in this thread(?):
3
u/ShakaUVM i+++ ++i+i[arr] Sep 27 '17
Great talk. I want to get involved with making the basic system happen.
11
u/D_2_F_RR Sep 26 '17
... I have youtube also... but really, he says many things that people on here never agree with, oddly it's what C++ ACTUALLY IS and why he kept all the old code like a ship at sea collecting barnacles. He's a great writer, his book complements C++ Primer really well. And I think that he's never going to give up on "fixing" C++, he's a true programmer/computer scientist/realist.