Filter, Map, Reduce from first principles

preview_player
Показать описание
Most developers have used filter, map and reduce at least once, but do you actually know what's going on under the hood?

If you like my style of teaching, I'd love to see you at my intermediate git workshop!

All code from this video:

My other video on git rebase

Fixing merge conflicts:

Video on `git pull --rebase`:

How to change your default editor in git:

Use the following command to change your default editor to VSCode:

If you use a different editor, just Google "git set text editor to $yourEditor", it's usually easy to find.

Git Graph Extension for VSCode:

If you don't use VSCode, you can also use SourceTree, which is free.

0:00 - Why filter, map, reduce?
1:23 - Higher-Order Functions
4:22 - Building up filter from scratch
7:17 - Map
8:28 - Reduce
12:00 - git cheatsheet

Thank you to Bruno Paulino for giving great feedback on drafts of this video!

LEGAL DISCLAIMER
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Everything here is for informational purposes only. All non-licensed clips used for fair use commentary, criticism, and educational purposes. See Hosseinzadeh v. Klein, 276 F.Supp.3d 34 (S.D.N.Y. 2017); Equals Three, LLC v. Jukin Media, Inc., 139 F. Supp. 3d 1094 (C.D. Cal. 2015).
Рекомендации по теме
Комментарии
Автор

I first got to learn these concepts when starting with big data, and again when starting to learn Spark. I wish someone had explained them to me this well back then!

SuffyanAsad
Автор

I don't know about other languages, but in C#'s LINQ, there is more to that. With the code provided in the video, each element is processed immediately when using .map(). In C#, you can use .map(...).first(...), and only the first element will be processed by .map()'s function. Similarly, if you assign processed array.map(...).filter(...) to a variable, it will return IEnumerable, and callbacks passed to .map() and .filter() will be executed only when you enumerate it (for example, use .first() or foreach on said variable)

kezzyhko
Автор

another banger, didnt even know i wanted this

El_Remolino
Автор

great content, just started with coding, it s deffo not for beginners, or its just me, i will learn and then get back to this video. Keep it up!!

dodor
Автор

11:34 Ha, good one haven't seen that one yet.

DerSolinski
Автор

Thank you for the wonderful video sir it was so useful for me and my team, thanks again

pravinprince
Автор

Nice, variable are in like everything. Love it.

G--A-R-Z
Автор

Loops beat looping methods in everything so I just don't bother with rememebring a dozen of those over remembering how to make a loop.

danser_theplayer
Автор

I like how you explain reduce with previous and current. It is a way better visualisation than call them accumulator and current.

liu-river
Автор

Can you make a video about classes/oop

AkashSingh-hssg