Fun with Flags, Enums and Bit Shifting
A creative programming exploration of encoding flag designs into a single 64-bit value using C# enums, bit shifting, and the ImageSharp library.
A creative programming exploration of encoding flag designs into a single 64-bit value using C# enums, bit shifting, and the ImageSharp library.
A step-by-step tutorial on building a simple HTTP web server in C, covering socket programming and the basics of the HTTP protocol.
A guide on migrating from OpenTracing.NET to OpenTelemetry.NET, covering key differences and implementation changes in .NET/C#.
A review of key new features in C# 10, including record structs and static abstract members in interfaces.
A tutorial on using the ILGPU library to perform GPU-accelerated matrix multiplication in C#, comparing performance with a naive CPU implementation.
Explores C# .NET 6 preview features enabling static abstract members in interfaces, focusing on generic math and parsable contracts.
Explores issues with C# 10's implicit usings feature, including build errors in multi-targeted projects and potential workarounds.
A guide to implementing a type-safe, feature-rich alternative to C#'s built-in enum, addressing its common shortcomings.
A guide to implementing and managing API versioning in ASP.NET Core, covering setup, benefits, and practical examples.
Explains how to create truly 'always valid' value objects in C# using records, focusing on proper validation in constructors.
Explores the evolution and practical examples of pattern matching in C#, from C# 7 to modern versions, highlighting its benefits for code clarity and safety.
Explains the key differences between IEnumerable and IQueryable in C#/.NET, focusing on in-memory vs. remote query execution.
A walkthrough of building a basic JSON parsing library from scratch using modern C++ features like move semantics and smart pointers.
Explores Creational Design Patterns in C#, focusing on the Factory and Fluent Builder patterns with practical code examples.
Analyzes C# struct equality performance, comparing default structs, IEquatable implementations, and C# 10 record structs.
Explores how to enable foreach loops on C# types without implementing IEnumerable, using GetEnumerator methods and extension tricks.
Explains how to use Task.WhenAny with CancellationTokenSource in C# to cancel remaining asynchronous tasks after the first one completes.
Introducing DynaMD, a C# library that simplifies .NET memory dump analysis with a more natural syntax than ClrMD.
Explores how C# string interpolation uses boxing/unboxing and its performance impact, comparing string.Format and string.Concat.
Overview of key new features in EF Core 6, including compiled models, performance improvements, and batching for SQL queries.