Monad Design Pattern (C#)

  Рет қаралды 12,979

Raw Coding

Raw Coding

Күн бұрын

Пікірлер: 32
@LordErnie
@LordErnie Жыл бұрын
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
@aamirali8114 Жыл бұрын
I was waiting for your video for Functional Programming damn i am so happy.
@alexintel8029
@alexintel8029 2 жыл бұрын
Watching this in 0.75 speed helps understand this a lot better.
@jakemeyer8188
@jakemeyer8188 8 ай бұрын
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_14pie
@3_14pie 7 ай бұрын
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)
@pierrekore221
@pierrekore221 2 жыл бұрын
Great explanation. thank you !
@RawCoding
@RawCoding 2 жыл бұрын
Glad you liked it!
@health_doc
@health_doc Жыл бұрын
How do you handle code that throws exceptions inside the monad
@bennymountain1
@bennymountain1 Жыл бұрын
By using a Maybe monad.
@abhishekbagchi6052
@abhishekbagchi6052 2 жыл бұрын
Amazing, thank you
@LucasMarinoElementh
@LucasMarinoElementh 3 жыл бұрын
Nicely explained, thanks!
@RawCoding
@RawCoding 3 жыл бұрын
Thank you for watching
@mariomorazan9473
@mariomorazan9473 3 жыл бұрын
I love how he explains. The examples are neat as well.
@vamvdotnet
@vamvdotnet 3 жыл бұрын
This reminds a bit of fluent pattern and pipes. Am I saying nonsense ?
@RawCoding
@RawCoding 3 жыл бұрын
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
@abdelrhmanahmed1378 Жыл бұрын
Erik Meijer react ❤
@Haapavuo
@Haapavuo 3 жыл бұрын
Could you please start using Microsoft's C# Coding Conventions (especially in naming)? Thank you.
@RawCoding
@RawCoding 3 жыл бұрын
Fuck the police
@Haapavuo
@Haapavuo 3 жыл бұрын
Wow. Yes, I can see that since you are copying your content mostly from the NDC talks...
@RawCoding
@RawCoding 3 жыл бұрын
Yes they are great sources of information
@Kitulous
@Kitulous 3 жыл бұрын
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_
@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.
Monoid Design Pattern (C#)
14:03
Raw Coding
Рет қаралды 6 М.
The New Option and Result Types of C#
15:05
Nick Chapsas
Рет қаралды 84 М.
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
Git & GitHub Crash Course 2025
49:29
Traversy Media
Рет қаралды 4,4 М.
What the Heck Are Monads?!
21:08
ArjanCodes
Рет қаралды 77 М.
Build Your Own Option Type in C# and Use It Like a Pro
18:31
Zoran Horvat
Рет қаралды 15 М.
What is a Monad? - Computerphile
21:50
Computerphile
Рет қаралды 614 М.
Use Null Object Pattern in Your Rich Domain Model
13:16
Zoran Horvat
Рет қаралды 12 М.
What is a Monad? - The Last Monad Intro You'll Ever Need
15:48
走歪的工程師James
Рет қаралды 26 М.
Prototype Design Pattern (C#)
12:30
Raw Coding
Рет қаралды 17 М.
How to Avoid Null Reference Exceptions: Optional Objects in C#
18:13
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 678 М.
Caleb Pressley Shows TSA How It’s Done
0:28
Barstool Sports
Рет қаралды 60 МЛН