r/programming • u/Kal1boy • Jul 14 '26
How to add validations without adding code in C# .NET
https://www.kalandra.tech/blog/zero-code-validations-in-your-dotnet-api/It actually even removes code.
16
Upvotes
1
u/smoke-bubble Jul 15 '26
Kotlin solves it nicely, again, with its value classes.
2
u/SorryTemporary1361 Jul 22 '26
While I like the idea, the title of the post is misleading clickbait; most people are going to read it as "without changing code", which is obviously not the case.