~/talk

Thinking Functionally with C#

Talkat NDC Oslo 2025 · 2025-05-19..05-23· [functional-programming, dotnet]
slides:none on file

Argues C# can be used as a practical functional language: replace for/foreach with LINQ Select/Zip/Aggregate and IEnumerable.Range, prefer switch expressions / pattern matching and tuples over ifs, make data immutable and functions pure (no voids), and handle errors with a Result<T> discriminated-union and Bind (a monadic chain). Shows concrete rewrites (actor/name mutation fixed by returning new object, price calculation as successive definitions), suggests trampolining as the single while-loop pattern, and reports fewer bugs, easier testing and simpler debugging.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:44What is a programming paradigm?
  3. 5:04Imperative vs. declarative styles
  4. 6:41Core concepts and motivation
  5. 9:27Advantages of functional code
  6. 13:43Addressing criticisms
  7. 17:47Immutability and state management
  8. 27:24Results-oriented architecture
  9. 32:04Pure functions and testing
  10. 36:14Functions over statements
  11. 44:29Handling unbounded loops
  12. 48:53Project structure patterns
  13. 52:51Handling side effects with results
  14. 58:05Domain modeling and conclusions
~/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.