~/talk

Domain modelling in object-oriented and functional programming, based on C# and F#

Talkat NDC Oslo 2022 · 2022-09-26..09-30· [software-architecture]
links:none on file
slides:none on file

Argues that domain modelling works better when code mirrors domain and incorrect states are unrepresentable, comparing C# and F# examples. Shows concrete models: policies, vehicles, movable black boxes, and engines, implemented with discriminated unions and records in F# versus classes and inheritance in C#. Demonstrates validation in constructors, the alternative of returning an error union instead of throwing, a function type for behavior (vehicle * distance -> vehicle), and how F# keeps many simple types in one file via type inference.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:54Classical domain modeling
  3. 5:58Domain modeling limitations
  4. 9:34Principles of modeling
  5. 12:29OOP modeling implementation
  6. 15:45Functional programming basics
  7. 19:07FP modeling implementation
  8. 22:53Complex modeling scenarios
  9. 26:15Functional modeling details
  10. 29:47Final thoughts and Q&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.