Latest posts
-
Logging in .NET with Serilog: Structured Logs Done Right
Set up logging in .NET with Serilog: message templates, ILogger, sinks, enrichers, appsettings configuration, request logging, and correlation ids. The post Logging in .NET with Serilog: Structured Logs Done Right…
-
Common Array Patterns for Coding Interviews: Kadane’s, Dutch National Flag, and Rotation
Three in-place array patterns for coding interviews: Kadane's algorithm, the Dutch National Flag partition and rotation by reversal, each built on one clear invariant. The post Common Array Patterns for Coding…
-
String Manipulation Techniques: Reversal, Palindromes, and Anagrams
String manipulation in Python and Java: why immutability makes naive concatenation O(n^2), safe ways to reverse, and how to check palindromes and anagrams in linear time. The post String Manipulation Techniques:…
-
Arrays in Data Structures: Traversal, Insertion, Deletion, and Complexity
How arrays store data in contiguous memory, what insert, delete and append really cost, why dynamic array appends are amortized O(1), and when to pick another structure. The post Arrays in Data Structures: Traversal,…
-
Background Jobs in .NET: IHostedService and Worker Services
Build background jobs in .NET with BackgroundService and IHostedService: worker template, scoped services, PeriodicTimer, Channel queues, graceful stop. The post Background Jobs in .NET: IHostedService and Worker…
-
Clean Architecture in .NET: Layers That Actually Help
Understand clean architecture in .NET: domain, application, infrastructure, and API layers, the dependency rule, and when it helps vs over-engineering. The post Clean Architecture in .NET: Layers That Actually Help…
-
Integration Testing ASP.NET Core APIs with WebApplicationFactory
Integration testing for ASP.NET Core APIs with WebApplicationFactory: expose Program, replace services, test databases, and authenticated requests. The post Integration Testing ASP.NET Core APIs with…
-
Unit Testing in .NET with xUnit: Getting Started
Start unit testing in .NET with xUnit: Facts and Theories, Arrange-Act-Assert, naming, NSubstitute test doubles, and running everything with dotnet test. The post Unit Testing in .NET with xUnit: Getting Started…
-
Querying Efficiently with EF Core: Tracking, Projections, and N+1
Find and fix the EF Core N+1 problem and more: AsNoTracking, Select projections, logging SQL, Include vs split queries, pagination, and ExecuteUpdate. The post Querying Efficiently with EF Core: Tracking, Projections,…
-
EF Core Migrations: Managing Schema Changes Safely
Ship EF Core migrations safely: add and remove migrations, generate SQL scripts and bundles, avoid startup Migrate() races, handle data loss. The post EF Core Migrations: Managing Schema Changes Safely appeared first on…