Faiz Ahmed Rasel

Faiz Ahmed Rasel

What Is an Agentic Framework?

AI agents are becoming increasingly useful in software development. But building an agent involves more than connecting an AI model to an application. You may need to manage tool calls, conversation history, workflow steps, errors, permissions, and decisions about what…

Dependency Inversion Principle

Our Renewal Reminders Went to Expired Customers, and We Couldn’t Test It The task sounded simple: email customers 3 days before their subscription expires. A few weeks after launch, support forwarded us angry messages. Customers whose subscriptions had already expired…

Interface Segregation Principle

We Needed a Read-Only Repository. The Interface Forced Us to Fake Seven Methods. Our reporting queries were slowing down the main database. The fix was clear: send report queries to a read replica. So I created ReadReplicaUserRepository. Then I opened…

Liskov Substitution Principle

Support Clicked “Refund.” The Server Threw an Exception. We added gift cards as a payment method. Quick job: create a GiftCardPayment class, inherit from our PaymentMethod base class, done. Two weeks later, a support agent clicked Refund on an order…

Open/Closed Principle

Adding One Shipping Option Broke International Orders for an Hour Marketing wanted a “same-day delivery” option for Black Friday weekend. Easy request. I opened our ShippingCalculator, added one more else-if, and deployed. An hour later, support told us international customers…

Generics in C#: Write Reusable, Type-Safe Code

Have you ever written the same logic multiple times because you needed to support different data types? C# Generics help solve this problem by allowing developers to create classes, interfaces, methods, and delegates that work with different types while maintaining…