Scott Wlaschin
Domain Driven Design, F# and Types

Video URL: https://skillsmatter.com/skillscasts/4971-domain-driven-design-with-scott-wlaschin

Discussion: Issue #136

Slides: https://www.slideshare.net/ScottWlaschin/domain-driven-design-with-the-f-type-system-functional-londoners-2014?ref=https://fsharpforfunandprofit.com/ddd/ Online code example: http://www.tryfsharp.org/create/scottw/ddd.fsx

Statically typed functional programming languages like F# encourage a very different way of thinking about types. The type system is your friend, not an annoyance, and can be used in many ways that might not be familiar to OO programmers.

Types can be used to represent the domain in a fine-grained, self documenting way. And in many cases, types can even be used to encode business rules so that you literally cannot create incorrect code. You can then use the static type checking almost as an instant unit test – making sure that your code is correct at compile time.

In this talk, we’ll look at some of the ways you can use types as part of a domain driven design process, with some simple real world examples in F#. No jargon, no maths, and no prior F# experience necessary.

Join us any time and get to be a better coder!

Back