Completely Get Rid of Null Using This Technique

Milan Jovanović
Milan Jovanović
10.8 هزار بار بازدید - 2 روز پیش - Get the source code for
Get the source code for this video for FREE → https://the-dotnet-weekly.ck.page/opt...
Join a community of 1000+ .NET developers: Patreon: milanjovanovic
Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt

Nulls in C# can be a constant source of headaches and bugs. But what if you could eliminate them entirely? In this video, we'll explore the Option/Maybe monad, a powerful functional programming concept that can revolutionize how you handle nullable values in C#.

By adopting this technique, you'll write more robust, expressive, and error-resistant code. We'll dive into practical examples of how to implement and use the Option type, showing you how it can replace nullable reference types and null checks throughout your codebase. Whether you're a seasoned C# developer or just getting started, this video will introduce you to a game-changing approach that can significantly improve your code quality and reduce null-related errors. Say goodbye to null reference exceptions and hello to cleaner, more maintainable C# code!

How To Apply Functional Programming In C#
https://www.milanjovanovic.tech/blog/...

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Read my Blog here:
https://www.milanjovanovic.tech/blog

Chapters
0:00 The problem with NULL
3:39 Introducing the Option monad
9:17 Composition using the Option monad
18:24 Option monad for value types
20:33 Cleaning up any remaining errors
23:04 Considerations, tradeoffs, benefits
2 روز پیش در تاریخ 1403/07/13 منتشر شده است.
10,802 بـار بازدید شده
... بیشتر