
C++ Seasoning
About this video
Sean Parent's GoingNative 2013 talk surveys new and overlooked C++ features and shows how to use them for simple, correct, clear code. It stresses using standard algorithms rather than raw loops.
Why it appears in the archive
Recommended whenever the STL mindset or avoiding raw loops in C++ comes up, as an enlightening talk on expressive algorithms.
AI-generated summary and labels from the source dataset; verify important details against the video. Source & credits.
From the Hacker News discussion
Yes! Alexander Stepanov is fantastic. He's the designer of the Standard Template Library (STL) for C++, which is C++'s core library of generic algorithms. It's part of the standard libary. If you can understand how to use the STL properly, you're well on your way to becoming a profiicent C++ programmer. His books are fantastic too. Elements of Programming: [LINK] and From Mathematics to Generic Programming: [LINK] If you prefer video lectures, his second book is based off his lecture series Four (three) Algorithmic Journeys: [LINK] [LINK] [LINK] [LINK] It's a combination of history and math/algorithms and programming (using C++). If you're just looking for a straight intro to C++ course this isn't it. But it's a ton of fun and the generic programming/STL mindset is very powerful. Programming Conversations is another great lecture series by Alexander Stepanov: [LINK] I would also recommend searching YouTube for videos by Sean Parent. This one in particular is very enlightening: [VIDEO] Sean Parent is very good at getting you in the STL mindset and showing off the expressive power of using the standard STL algorithms in your code. Except in the simplest cases, you should try to use them instead of writing your own loops. Here are some random tips if you're coming from C or Java: "new" is not the way to create objects in C++. new and delete should almost never be used by serious programmers in C++. Never use new and delete (or malloc and free). If you want a dynamically-allocate
Read original comment ↗Sean Parent has a good talk about no loops in C++. His primary argument is that typically a loop is an algorithm you’re applying (map, filter, reduce…) and the raw loop masks the algorithm. [VIDEO]
Read original comment ↗It was a cute gimmick for the title, nm. But you should try to avoid raw loops in favor of established iteration patterns / standard library algorithms. I found this talk on the subject by Sean Parent to be educational: [VIDEO]
Read original comment ↗