In the last 6 or 7 weeks I start to read and watch videos about the capabilities of F# and how it help me to write better code and better domain and business logics.
Thanks to Greg Young, the father of CQRS and developer of the EventStore, i want to know about functional languages. One sentence, actually two, he said was:
"When we talk about Event Sourcing, current state is a left-fold of previous behaviors. Nothing new to Functional Programmers"
so in F# he meant:
let currentState = (initialState,sequenceOfEvents) ||> Seq.fold applyEvent
So after that, I discovered talks of Scott Wlaschin and his site fsharpforfunandprofit.com and it is amazing what i can do with F# to model a domain and write code without heavy boilerplate like in C#.
Don't get me wrong, i love C#, but now i love F#, too.
So i start, likely for myself, to write, how i write code and modeling a business domain, here in my blog the next time.