Programming Conversations Lecture 5 part 1

A9 Videos · 17K views · 2014 · 42:02

Open on YouTube

C, C++, Rust, Go & systems languagesSoftware architecture & designSoftware practice, open source & careerslecture

Why Stack Overflow recommends it

Stack Overflow users link it when arguing for standard algorithms over hand-written loops and when pointing to Sean Parent's talks on generic programming.

Recommended by 3 people across 3 different months, 2014 to 2021.

What it is

A 42-minute guest lecture from Alex Stepanov's Programming Conversations series at A9, given by Adobe principal scientist Sean Parent. It covers his three goals for better code, including using STL-style algorithms instead of raw loops, with slides provided.

What people said

Strong rec Koronis Neilos · 2021-07 · Stack Overflow · on “Benefits of std algorithms about readability”

Disclaimer I wrote most of the code from the first example. code example 1 [LINK] The reason why I did not use a for each is because a for loop is too mighty. Which leads to problems in reasoning because it is hard to figure out the intend if you use mighty tools. Try to use a more limited tool and the reader has a higher chance to find out what you try to do. For more Information please watch the legendary talk from Sean Parent No raw loops talk from Sean Parent [this video] .

Recommends Michael Urman · 2014-06 · Stack Overflow · on “Properly written for-loops, normal and inverse, C++ basics”

Avoid raw loops [LINK] (or other videos of Sean Parent [this video] ). All your examples are better handled with `std::copy(s.begin(), s.end(), std::ostream_iterator(std::cout))` (or rbegin and rend).

Recommends DaveParillo · 2017-10 · Stack Overflow · on “"Elements of Programming" real world examples?”

To see Sean Parent's opinions about using the STL to reduce code size, check out: [LINK] . He also gives a version of it In lecture 5 of Alex Stepanov's Programming Conversations series: [this video]