Functional Programming in one page

A mathematical function returns the same result every time. The functional world has 2 characteristics. The function has no side effects. Take input and produce output. -> called pure function. All data structure is immutable. -> There is no mutable state. A functional programming language provides a bridge between pure functional work and the messy… Continue reading Functional Programming in one page

Functional Principles in C# – method should be honest

Below are the key ideas of how to apply functional principles in C# explained in Pluralsight course by Vladimir Khorikov. Immutable Architecture Separate domain logic, Infrastructure(Persister), Service logic. Make the domain logic immutable and functional(input -> output) so as to easily unit test it. Make the infrastructure and service logic as simple as possible. Exception Use return… Continue reading Functional Principles in C# – method should be honest