Get free YouTube views, likes and subscribers
Get Free YouTube Subscribers, Views and Likes

A Monads Approach for Beginners in Scala | Rock the JVM

Follow
Rock the JVM

Written version: https://blog.rockthejvm.com/monads/

This video is for Scala programmers with some essential skills (generics, Options and how flatMap works on lists). In here, I'll try to arrive at the monad structure by writing code and solving programming problems, instead of weird mexicanfood analogies or blackboard abstract math.

Monads are inherently abstract, but we'll write concrete examples, and then derive the structure of a monad and the monad properties ("laws") starting from the concrete and then generalizing the ideas. We'll write some 150 lines of code in this video alone.

Contents:
0:00 Intro and requirements
1:00 The ETW pattern and monad structure
10:50 Example 1: a census application
17:05 Example 2: async calls in an online store
24:51 Example 3: doublefor "loops"
28:28 The monad properties


Follow Rock the JVM on:

LinkedIn:   / rockthejvm  
Twitter:   / rockthejvm  
Blog: https://rockthejvm.com/blog'>https://rockthejvm.com/blog


Home: https://rockthejvm.com

posted by mahashumu82