~/talk

Functional Programming with C#

Talkat NDC London 2023 · 2023-01-23..01-27· [c-sharp, functional-programming]
slides:none on file

Shows how to write functional C# using only built‑in features: LINQ and IEnumerable, Func delegates, extension methods, switch expressions, records and init properties. Demonstrates concrete patterns — CSV parser, NINO validator turned into an array of Funcs + .All, fork/map/join, Aggregate-based reporting — and implements Identity and Maybe/Either monads (bind/map), currying/partial application helpers, and memory/speed tradeoffs. Claims code becomes ~half the size and far easier to unit test and parallelize.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26Functional programming history
  3. 3:11Functional programming versus object-oriented programming
  4. 6:44Core FP principles
  5. 10:59Where FP fits best
  6. 14:29When FP isn't ideal
  7. 16:13FP benefits in C#
  8. 17:38Imperative vs functional code
  9. 20:46Validating data functionally
  10. 24:00Pattern matching for validation
  11. 27:33Forking and joining data
  12. 30:49Pattern matching in C#
  13. 32:57Immutability in C#
  14. 36:31Records and updates
  15. 38:14Currying in C#
  16. 41:50Aggregation and functional data processing
  17. 45:42Monads and railway architecture
  18. 53:46Errors and nulls with monads
  19. 59:27FP libraries for C#
  20. 1:02:52Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.