Cyrille Martraire – When FP meets DDD good things happen
Domain-Driven Design (DDD) and Functional Programming (FP) have a lot of good things in common: DDD has borrowed many ideas from the FP community, and both share a common inspiration on established formalisms like maths.
For the software developer, the result is a style of code that mixes the best of DDD, OO and FP. Even in non functional languages like Java or C#, this combined set of practices helps craft simple and powerful code that reads well and that is very easy to test.
In this talk we will have a closer look at some of these ideas, in the context of domain models inspired from real-world projects. From basic FP hygiene like immutability and closure of operations to more mathematical inspirations from abstract algebra like monoids, we will show how all that translates into beautiful code.
WARNING: This may influence your coding style…
45 min with Q&A
What will you learn?
You will discover how FP, DDD and OO mix well, with real-world examples of how to apply that into your daily work
A taste for well-crafted code
Discuss the topic during an Open-Space session
Try some Clojure or Haskell
Read Brian Marick’s short book: “Functional Programming for the Object-Oriented Programmer”, or the very short book by Dean Wampler: “Functional Programming for Java Developers”.
Do the attendees need a laptop?