Session
How I killed the if - With Union Types, Option & Result for more robust C# applications
One of the most important and challenging things to get right in clean code is keeping logic and composition separate. Functional programming languages offer elegant solutions here. Over the last few years, these ideas have been integrated more and more into C# and the runtime environment. In this presentation full of code and demos, Aydin shows us how we can use these patterns in our everyday programming to write more stable code.
We gain insight into result types, map, bind and match to map all cases in the code without exceptions and if conditions. We see how to create union types and never again have to ‘guess’ what the result of an operation is. Each union type comes with its own type-safe pattern matching. We learn how to avoid structural repetitions with lambda expressions and take DRY to a new level.
Even if it might feel a bit weird at first, these functional concepts ultimately lead to a clear separation between composition and logic in classes and methods. This greatly simplifies testing, makes the code more KISS, and makes the domain more visible.
I am an experienced speaker in the field of .Net, Cloud and Green Software.
Many years of repeated presentations on:
Developer Week (https://www.developer-week.de/)
We Are Developers (https://www.wearedevelopers.com/world-congress)
NDC Oslo (https://ndcoslo.com)
IT-Tage (https://www.ittage.informatik-aktuell.de/)
Developer Day (https://entwicklertag.de/)
And many other community conferences and meetups
Aydin Mir Mohammadi
software architect & cto at bluehands, community enthusiast
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top