Monads in Functional Programming
Welcome to week 14 (again a bit Late) of my One Video per Week Challenge. Today I wanted to cover a Topic I actually had to learn a bit about for university. I looked around originally and never really found a Video that truly explains the Concept of Monads in Functional Programming. Therefore I decided to try myself and even though it did not end up as good as I wanted it to, I believe it brings a base line over and I hope you were able to learn something from this. To explain shortly: Monads are used to split Pure Code (Code without Side Effects or Error Possibilities) from Impure Code (Code with Side Effects or Error Possibilities). Side Effects are all Actions our Program takes that are not hard coded like reading Input and creating Output as well as manipulating Data and handling Network Connections. Errors are all cases like numbers in a Name, or Division through zero. Basically you give these Extra control bits of code a special Type like Maybe or IO depending on the Monad and therefore can spot them easier when errors occur. This helps to figure out if problems happen in the Pure or Impure Code. A most common language for Monads is Haskell but you can use them in nearly every Functional Programming Language. I can not guarantee that I understood it myself correctly but I am happy to help whenever I can, if you have any comments please leave them in the comment section for me to read and reply! Thank you for checking this channel out and come with me on this Journey. I wish everyone out there a happy week and see you next Sunday! -------------------------------------------------------------------------------------------------------------- Learning's: -------------------------------------------------------------------------------------------------------------- - Programming Concepts are partially hard to understand/ explain - Not all topics are covered good enough through already existing Videos / Articles - Don't use ChatGpt to try and understand this topic since it is focused to much on Detail and made it unnecessarily hard for me over the week to understand it correctly. -------------------------------------------------------------------------------------------------------------- Creation Time: -------------------------------------------------------------------------------------------------------------- it took me about 6h to create this Video.
Download
0 formatsNo download links available.