Talking to Terence about Teams and Architects
F#: Creating only valid values
In this video, I go through a kata in which I write code to enforce the creation of valid data only:
Talking to Shawn about the software industry
F#: Enforce the creation of a Discriminated Union value via a dedicated function
I posted this question. The link above reflects a question that I had regarding how to enforce reliance on a function to create a value for a client. The solution is to have the client rely on Active Patterns that's publicly exposed while maintaining the privacy of the Discriminated Union type. This will prevent a …
Continue reading "F#: Enforce the creation of a Discriminated Union value via a dedicated function"
F#: Event Sourcing
Intro I have been studying Event Sourcing recently and would like to document my understanding. As I understand, Event Sourcing is a technique used as an alternative to a CRUD (i.e. Create, Read, Update, Delete) model. I would like to think of event sourcing as a ledger for recording code execution that ultimately hydrates an …