IB

Imraan's Blog

Names imraan.in

Latest posts

  1. 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…

    2d ago · Read on imraan.in →
  2. 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…

    2d ago · Read on imraan.in →
  3. 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:…

    2d ago · Read on imraan.in →
  4. 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,…

    2d ago · Read on imraan.in →
  5. 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…

    3d ago · Read on imraan.in →
  6. 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…

    4d ago · Read on imraan.in →
  7. 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…

    1w ago · Read on imraan.in →
  8. 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…

    1w ago · Read on imraan.in →
  9. 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,…

    1w ago · Read on imraan.in →
  10. 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…

    2w ago · Read on imraan.in →