A taste of functional programming with F#
summary
Shows how to translate a C# caching pattern into a generic F# function, demonstrating records and discriminated unions, higher‑order functions and immutability as practical tools rather than theory. Uses .NET F# plus examples of Fable and the SAFE stack for web UIs. Converts nullable cache results into option types prevent nulls and pattern matching, so the compiler eliminates many null checks. Demo code keeps cache-get logic generic, reduces boilerplate, and illustrates that immutability makes reasoning and bug tracing simpler in both concurrent and synchronous code.
AI-written summary · about
chapters (12)
- 0:00Start
- 5:04Type Providers
- 6:13Higher Order Functions
- 8:25Constructs of F Sharp
- 13:30Higher Order Functions in C Sharp
- 17:08Abstraction
- 25:37Discriminated Unions
- 27:07Data Constructors
- 27:17Pattern Match
- 28:34Discriminate Union
- 32:43Why Immutability Matters to Me
- 40:41The Safe Stack
related talks
01h 05mBusting the Func'ing Jargon
58mFunctional Programming with C#
01h 09mFunctional Programming with C#
01h 01mThe Power and Practicalities of Immutability
46mFunctional developer in object oriented world
01h 00mFunctional-first programming with F#
01h 03mFunctional Programming with C#
49mRefactoring toward a more functional style in F#
