#Pure-Functions
3 notas · última:
Functional Programming in C#—A Brief Consideration
The post introduces functional programming in C# as a way to reduce complexity, relying on pure functions, immutability, LINQ, and higher-order functions to make code easier to understand, debug, and test.
The Simplest Case for Unit Tests: Pure Functions
Pure functions are easy to cover with unit tests because their output depends only on inputs. The article shows how tests expose edge cases in strings, money calculations, and math operations.
Pure functions
A pure function is deterministic and has no side effects. The post explains how mutable state, input streams, argument mutation, and output streams break purity, and why isolation matters.
