I wonder if this is used in general practise. I personally couldn't agree more with your advice, but I do wonder if it's the best way to go from an OO perspective. Could you elaborate on how the usage of monads in combination with the Nil structure, lead to a better and more maintainable process? I am a fan of process composition, but I don't see how this could be implemented in smaller processes. 100 Points to Griffindor for the self describing code and the abstracting away of NULL. But you didn't remove NULL, you just gave it a wrapper so you could treat it in a different way. NULL will eventually still be in your code, you just don't deal with NULL but rather an object that represents having no value.
@aamirali8114 Жыл бұрын
I was waiting for your video for Functional Programming damn i am so happy.
@alexintel80292 жыл бұрын
Watching this in 0.75 speed helps understand this a lot better.
@jakemeyer81888 ай бұрын
I realize I'm spoiled as a programmer; we have lots of memory and horsepower to work with nowadays, but my brain really likes the clear class and type definitions that Object Oriented Programming offers. Functional programming is great with C/C++ (particularly on microcontrollers) but on larger systems it can be incredibly difficult to maintain Functional code if you didn't write it. Imagine stepping through even a few thousand lines of this after you've been given an old project. Literal nightmare.
@3_14pie7 ай бұрын
but C is isn't functional at alll, and c++ is THE objected oriented language 😭 (I get your point, but there's better examples for that)
@pierrekore2212 жыл бұрын
Great explanation. thank you !
@RawCoding2 жыл бұрын
Glad you liked it!
@health_doc Жыл бұрын
How do you handle code that throws exceptions inside the monad
@bennymountain1 Жыл бұрын
By using a Maybe monad.
@abhishekbagchi60522 жыл бұрын
Amazing, thank you
@LucasMarinoElementh3 жыл бұрын
Nicely explained, thanks!
@RawCoding3 жыл бұрын
Thank you for watching
@mariomorazan94733 жыл бұрын
I love how he explains. The examples are neat as well.
@vamvdotnet3 жыл бұрын
This reminds a bit of fluent pattern and pipes. Am I saying nonsense ?
@RawCoding3 жыл бұрын
You’re right in saying that it reminds you of it, the style of code is the same as in visually the shape looks the same. But the way we drag the result of 1 function in to the next is what makes the monad, fluent apis aren’t bound by that.
@abdelrhmanahmed1378 Жыл бұрын
Erik Meijer react ❤
@Haapavuo3 жыл бұрын
Could you please start using Microsoft's C# Coding Conventions (especially in naming)? Thank you.
@RawCoding3 жыл бұрын
Fuck the police
@Haapavuo3 жыл бұрын
Wow. Yes, I can see that since you are copying your content mostly from the NDC talks...
@RawCoding3 жыл бұрын
Yes they are great sources of information
@Kitulous3 жыл бұрын
conventions are just conventions, Anton is not obliged to use them. if one works in a company they should use the company's conventions, if one doesn't work in a company they are free to use whatever convention they feel like to, even define their own conventions
@42069_2 жыл бұрын
i agree, anton should've used better names. but not necessarily MS conventions. if i got something from the video, i got the theroy. not the implementation.