Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Functional Programming – 09: Option, Maybe and null value

8.9K views on YouTube

In this video we will look at “Option” type constructor which sometimes it is called “Maybe”. We will look into why using Null values can lead to bugs and how to prevent it by using “Option”.

In this Video:
– What is wrong with Null value
– How to convert a Partial Function to a Total Function
– How to fix the Null value issue
– Defining Option (Maybe), Some (Just) and None (Nothing)

Links:
– https://github.com/gcanti/fp-ts