Programming with Functions #8: Monads
Monads. The you know what. That dreaded word. Monoids in the category of endofunctors. Burritos with rules. They have a bad reputation as unclear, overcomplicated structures which nobody really can explain. But are they? In my opinion, if you understand flatMap, you're good to go.
The blog entry with transcription on Wordpress: https://makingthematrix.wordpress.com/2021/07/13/programming-with-functions-8-that-dreaded-word/
And on Medium: https://makingthematrix.medium.com/c2a30153f5ff?source=friends_link&sk=d1908e6ab59bd9addd7980e86fda3f97
Option in the Scala docs: https://www.scala-lang.org/api/current/scala/Option.html
Either in the Scala docs: https://www.scala-lang.org/api/current/scala/util/Either.html
Alvin Alexander's article on Option + flatMap: https://alvinalexander.com/scala/handling-nested-options-with-flatmap-for/ (there you will find links to his other texts on this topic)
By the way, the infographics in the video are drawn, and the texts are written with the left hand. This is on purpose. Around 10% of people in the world are left-handed, this series has 10 episodes, so I thought I'd use to represent us :) Besides, there is a small reason why I chose this one - you can learn about in the video. The side-effect is that you can't see what is being written at the given moment which kind of like the experience we left-handed people have when handwriting. Ooof, it took me so long to learn to write by hand neatly... To counter it, I decided to animate the writing a bit faster that usual, and then leave a bit more time for reading the text when it's already written in full. Sorry for the inconvenience.
The trolls heads drawing comes from LSpace Wiki, a wiki about Terry Pratchett's Discworld: https://wiki.lspace.org
(the wiki displays the CC license banner, but I wasn't able to identify the author - if it's you, please contact me).
Ghosts In Your Mind by Darkroom (c) copyright 2021 Licensed under a Creative Commons Attribution Noncommercial Share-Alike (3.0) license. http://dig.ccmixter.org/files/mactonite/63508
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Programming with Functions #8: Monads», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.