#Immutability
5 notas · última:
There and Back Again
The author compares C# and F# through a bank-account withdrawal app, showing how immutability in F# keeps data changes separate from persistence, while C# needs extra care with Entity Framework tracking.
Everything You Want to Know About the Record Type in .NET… But Were Afraid to Ask
The article presents record types in .NET 5 as a fit for model types such as DTOs and POCOs, with less boilerplate and built-in support for immutability. It also notes that records generate equality members, GetHashCode(), and a useful ToString(), while mentioning a custom PropertiesToString() for collection properties.
Melhorando validações no domínio com melhores assinaturas de método e lógica funcional (Parte 2)
O texto propõe assinaturas mais claras para recuperar, modificar e persistir entidades, usando tipos como Try, Untrusted e Unit para explicitar falhas, entrada duvidosa e evitar null.
Functional Programming in a Dysfunctional World
The article argues that functional programming improves correctness and testability through immutability, pure functions, algebraic data types, and strong type systems, with property-based testing as a key complement.
The Philosophy of Ramda
Ramda says it is a practical functional library for JavaScript programmers, built around small composable functions, immutable data, a shallow API, and parameter order that supports currying.
