In.NET FiddlebyAndrey Tverdomed·Sep 21The Switch Statement Finally Went on a DietTen lines of switch statement, one line of judgment. That’s basically what the switch expression is: C# finally admitting braces and break…
In.NET FiddlebyAndrey Tverdomed·Sep 18LanguageExt: Functional C# That Doesn’t Trust NullNull reference exceptions have haunted C# since day one, and Microsoft still hasn’t really fixed it.
In.NET FiddlebyAndrey Tverdomed·Sep 16AutoMapper: Because Nobody Wants to Write dto.Name = customer.Name ForeverEver copy-paste the same property assignments between a DTO and a domain object, then do it again in the next class? Yeah, that used to be…
In.NET FiddlebyAndrey Tverdomed·Sep 14Records Have Family Drama Too: Open vs Sealed InheritanceRecords can inherit from other records — and most devs never touch that button. Turns out record inheritance gets weird fast, especially…
In.NET FiddlebyAndrey Tverdomed·Sep 10Join vs GroupJoin: The LINQ Left Join Nobody Talks AboutLINQ’s Join method has zero chill. If there’s no match, that record just vanishes. No warning, no trace. GroupJoin, on the other hand…
In.NET FiddlebyAndrey Tverdomed·Sep 8SelectMany: The LINQ Trick That Ends Your Nested Foreach Loop EraNested foreach loops called. They want a divorce.
In.NET FiddlebyAndrey Tverdomed·Sep 3nameof: The Operator That Never Forgets a RenameEver renamed a variable and forgot to update the error message that mentioned it by name? Compiler didn’t care. Users got a lie.
In.NET FiddlebyAndrey Tverdomed·Aug 28Tuple Deconstruction: C#’s Cure for the Multi-Return HeadacheTuple deconstruction quietly ended the ugliest pattern in C#: methods littered with out int, out double, out whatever just to hand back…
In.NET FiddlebyAndrey Tverdomed·Aug 26LINQ’s Aggregate: The Reducer That Makes Sum() Look LazySum() and Count() are training wheels. Aggregate() is where LINQ actually lets you drive.
In.NET FiddlebyAndrey Tverdomed·Aug 24GC.GetTotalMemory: The Cheapest Profiler You Already HaveEver wonder how much garbage your code leaves behind before the GC quietly hauls it away? There’s a method that tells you, and it’s been…