Elvin Jamalov
Notes on building software with LLMs
Agents, retrieval, evals and inference, written for engineers who ship software.
-
Building Secure and Efficient PDF Automation in .NET
Shipping a complex reporting feature for a new SaaS platform, the requirement was clear: generate pixel-perfect PDFs from dynamically rendered HTML. Simple enough, right? Just grab an HTML-to-PDF library, feed it the ...
-
Escape the SPA Trap: Enhancing Razor Pages with HTMX Interactivity
The pursuit of client-side interactivity in web applications often leads down a familiar path: the Single Page Application (SPA). Teams often reach for React, Angular, or Vue.js, even for moderately interactive experi...
-
Dependency Injection: A Modern Approach to Architectural Flexibility in .NET
It’s a familiar failure mode: a codebase where a minor change cascades into a dozen unexpected breakages, or a critical bug proves impossible to reproduce outside of production because its dependencies are inextricabl...
-
Modern C# Type System: Choosing the Right Type (Struct, Record, Class)
The mental model we apply to data in our systems shapes everything, from performance profiles to debugging nightmares. For years, the class was the default, often the only real choice for complex data. Then structs li...
-
Effective Unit Testing of Entity Framework Core DbContext with Mocks
When building robust .NET applications with Entity Framework Core, ensuring the data access layer behaves as expected is paramount. We write tests. But then, the build server starts groaning, and local development cyc...
-
Building Scalable ASP.NET Core Applications with Asynchronous Long-Running Tasks
An API endpoint that seemingly takes milliseconds to respond often hides a more insidious problem: a background process that’s quietly choking the server, consuming critical resources, or simply failing to complete re...
-
Developing a Document Search Engine in C# Without Python
A common requirement: intelligent search over internal documents, product descriptions, or user-generated content. The immediate reflex for many in the modern AI landscape is to reach for a Python-based library – perh...
-
Implementing Resilient .NET Applications with Polly for Distributed System Reliability
The HttpClient call fails. Again. Not with a 500 internal server error, but a timeout. Then a ConnectionRefused. A few seconds later, it’s a 408 Request Timeout. The external service is flaky, or perhaps just briefly ...
-
High-Performance Backend Scripting and Runtime Code Generation in .NET
Backend systems often face a fascinating tension: the need for robust, predictable performance coupled with an equally strong demand for adaptability and extensibility. We build our services in C#, leveraging its stro...
-
Advanced C# Generics: Implementing CRTP for Robust Library Design
When designing robust, extensible libraries in C#, we often find ourselves at a crossroads: how do we create a base abstraction that provides common functionality while simultaneously allowing derived types to introdu...