All Coder Things
Articles, references, and practical project series on software development.
Guides
Featured Articles
Dependency Injection Basics in C#
Learn the basics of Dependency Injection in C#, including managing dependencies, loose coupling, and improving testability.
C# Loops (for, foreach, while, do-while)
Learn how to use for, foreach, while, and do-while loops in C#. Discover practical examples for handling repeated operations in C# applications.
C# Operators and Expressions
Operators and expressions in C#: arithmetic, comparison, logical, increment/decrement, ternary, and null-coalescing usage.
C# Console Commands
Learn how to work with the C# console by writing output, reading user input, and formatting text with practical examples.
SOLID Principles with C#
Applying SOLID principles in C# with examples: building flexible, maintainable, and testable code.
Iterators and Their Use in the C++ STL
Learn iterators in C++ and how they work with STL containers and algorithms to traverse and manipulate data efficiently.
Design Patterns in C# (Factory, Singleton, Repository, Observer)
Learn design patterns in C#, including Factory, Singleton, Repository, and Observer, to build flexible and maintainable applications.
Interop in C# (Working with C/C++ Libraries)
Learn how to use Interop in C# to work with C/C++ libraries, including P/Invoke, unmanaged code, and data marshaling.
C# Boolean Operations
Learn how boolean operations work in C#, including the bool type, comparisons, and logical operators like &&, ||, and ! with examples.
Collections in C#: List, Dictionary, Queue, Stack
Learn C# collections like List, Dictionary, Queue, and Stack to store and manage data efficiently with practical examples.
DateTime & TimeSpan Operations in C#
Learn how to work with DateTime and TimeSpan in C# to perform date and time operations such as comparison, addition, subtraction, and formatting.
Arrays in C#
Learn arrays in C#, including declaration, indexing, looping through elements, and common array operations with examples.
C# Conditional Statements (if, else, switch)
Decision structures in C#: learn how to use if, else if, else and switch to perform different actions based on conditions.
Abstract Classes and Interfaces in C++
Learn abstract classes and interfaces in C++ using pure virtual functions to design flexible and extensible software architectures.
C# Syntax Structure
Learn the basics of C# syntax, including code blocks, comments, and variable naming rules, with clear explanations and practical examples.
Networking in C# (TcpClient, HttpClient, REST API Calls)
Learn networking in C# using TcpClient, HttpClient, and REST API calls to handle communication and external data exchange.
C# Type Conversions
Learn how type conversions work in C#, including implicit and explicit casting, Parse, TryParse, and Convert methods with examples.
C# String Operations
Learn how to work with strings in C#, including concatenation, searching, substring, IndexOf, and other essential string operations.
Debugging Techniques in C#
Learn debugging techniques in C# using breakpoints, watch windows, and step tools to quickly identify and fix issues.
Memory Management and the Garbage Collector in C#
Learn memory management and the garbage collector in C# to understand object lifetime, allocation, and cleanup processes.
C# Math Library
Learn how to use the C# Math library, including Pow, Sqrt, Round, Abs, and other essential mathematical methods with examples.
Sealed, Static, and Partial Classes in C#
Learn sealed, static, and partial classes in C#, including their purposes, differences, and practical use cases.
Delegates and Events in C#
Learn delegates and events in C# to build event-driven applications using callbacks, subscriptions, and real-world examples.
Passing Parameters to Functions via Pointers in C++
Learn how to pass parameters to functions via pointers in C++, including address passing, memory access, and practical examples.
IDisposable and the Using Pattern in C#
Learn IDisposable and the using pattern in C# to manage resources safely, release unmanaged objects, and avoid leaks.
Latest Examples
ETag Caching in ASP.NET Core: If-None-Match and 304 Not Modified
Add ETag-based conditional GET support to ASP.NET Core APIs. Generate a response fingerprint, handle If-None-Match, and return 304 when the resource has not changed.
Atomic File Write in .NET: Prevent Partial and Corrupted Files
Write files safely in .NET by saving to a temporary file, flushing it, and replacing or moving it into place to prevent partial updates.
Idempotency Key in ASP.NET Core (.NET 8): Prevent Duplicate POST Requests
Use an Idempotency-Key header to make POST requests safe to retry: cache the first response and replay it for duplicates, avoiding double inserts.
Safe Sort & Filter in ASP.NET Core: Query Builder with Whitelisting
Parse ?sort=name,-createdAt&filter=country:TR,status:active safely by whitelisting allowed fields and mapping them to expressions or SQL columns—no dynamic injection.
ASP.NET Core Validation Errors: Normalize ModelState to { field, message }[]
Normalize ASP.NET Core ModelState errors into a simple { field, message }[] format using InvalidModelStateResponseFactory, so clients can render validation consistently.
Zip a Folder with Progress in .NET (WPF Example)
Create a ZIP from a folder in .NET while reporting progress to a WPF ProgressBar using ZipArchive and IProgress for smooth UI updates.
Featured Examples
ETag Caching in ASP.NET Core: If-None-Match and 304 Not Modified
Add ETag-based conditional GET support to ASP.NET Core APIs. Generate a response fingerprint, handle If-None-Match, and return 304 when the resource has not changed.
ProblemDetails in ASP.NET Core: Clean Error Responses with TraceId
Map exceptions to RFC 7807 ProblemDetails and include a traceId so clients get consistent errors and you can match the exact request in logs.
Idempotency Key in ASP.NET Core (.NET 8): Prevent Duplicate POST Requests
Use an Idempotency-Key header to make POST requests safe to retry: cache the first response and replay it for duplicates, avoiding double inserts.
Safe Sort & Filter in ASP.NET Core: Query Builder with Whitelisting
Parse ?sort=name,-createdAt&filter=country:TR,status:active safely by whitelisting allowed fields and mapping them to expressions or SQL columns—no dynamic injection.
ASP.NET Core Validation Errors: Normalize ModelState to { field, message }[]
Normalize ASP.NET Core ModelState errors into a simple { field, message }[] format using InvalidModelStateResponseFactory, so clients can render validation consistently.
Zip a Folder with Progress in .NET (WPF Example)
Create a ZIP from a folder in .NET while reporting progress to a WPF ProgressBar using ZipArchive and IProgress for smooth UI updates.
Atomic File Write in .NET: Prevent Partial and Corrupted Files
Write files safely in .NET by saving to a temporary file, flushing it, and replacing or moving it into place to prevent partial updates.
Standard API Response Wrapper in ASP.NET Core (Result)
Standardize success and error responses in ASP.NET Core using a Result