Build Your Own Option Type in C# and Use It Like a Pro

Zoran Horvat
Zoran Horvat
13.9 هزار بار بازدید - 2 سال پیش - Become a patron and get
Become a patron and get access to source code and exclusive live streams: www.patreon.com/posts/build-your-own-c-81382247 In this video, you will learn how to design a powerful and flexible implementation of the Option type, and then use it to build equally powerful domain models. It is not necessary to use third-party libraries that include Option implementation. It is not the Option type a programmer needs - such a type can be coded in minutes. What programmers truly need is the backing knowledge of how and when to use optional objects. This video combines the two questions: defining the Option type and designing a domain model that incorporates it, into one unified demonstration. You will learn how Optional objects can be used to bridge the gap between potentially missing objects at run time, and functions that always require an object to produce a result. It is that powerful Map-Reduce combination that will make your domain models expressive on the one hand, but also extensible and composable on the other. What else could one wish for? The complete source code from this demonstration is available in GitHub repository: github.com/zoran-horvat/optional Learn more from video courses: Beginning Object-oriented Programming with C# ► codinghelmet.com/go/beginning-oop-with-csharp Collections and Generics in C# ► codinghelmet.com/go/collections-and-generics-in-cs Making Your C# Code More Object-oriented ► codinghelmet.com/go/making-your-cs-code-more-oo Other courses at Pluralsight ► codinghelmet.com/go/pluralsight Other courses at Udemy ► codinghelmet.com/go/udemy Other videos on this channel you may be interested in watching: Using GitHub Copilot to Write Complex Code | Step-by-step Tutorial ►    • Using GitHub Copilot to Write Complex...   Coding with GitHub Copilot - Beginner to Master | VS Code Demo ►    • A Comprehensive Guide to GitHub Copil...   What is Covariance and Contravariance in C# ►    • What is Covariance and Contravariance...   How to Initialize a Clean ASP.NET Core Project with Entity Framework Core and Identity ►    • How to Initialize a Clean ASP.NET Cor...   The Null Conundrum: A Guide to Optional Objects in C# ►    • How to Avoid Null Reference Exception...   #oop #dotnet #functionalprogramming
2 سال پیش در تاریخ 1401/11/27 منتشر شده است.
13,928 بـار بازدید شده
... بیشتر