C++ Seasoning

aghuttun3 HN recommenders · 2018–2022
58K views · talk · evergreen · Uploaded 2013-09-16

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.

Recommended whenever the STL mindset or avoiding raw loops in C++ comes up, as an enlightening talk on expressive algorithms.

Watch on YouTube

3 comments from Hacker News

@Suncho2018 · in “Ask HN: What is the best Modern C++ MOOC?”

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

Strongly recommendsView on HN
@matthewaveryusa2021 · in “Loopless Code (2006)”

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]

RecommendsView on HN
@einpoklum2022 · in “Show HN: State-of-the-art German speech recognition in 284 lines of C++”

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]

RecommendsView on HN