<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Prity Rani Das on Medium]]></title>
        <description><![CDATA[Stories by Prity Rani Das on Medium]]></description>
        <link>https://medium.com/@prityd825?source=rss-f477c45ed522------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mAL-E7iakxiIpSC8SBjekw.jpeg</url>
            <title>Stories by Prity Rani Das on Medium</title>
            <link>https://medium.com/@prityd825?source=rss-f477c45ed522------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:45:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prityd825/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Replacing 4 Engineers with 1 Person + AI Agents: Strategic Cost-Cutting or Organizational Suicide?]]></title>
            <link>https://medium.com/@prityd825/replacing-4-engineers-with-1-person-ai-agents-strategic-cost-cutting-or-organizational-suicide-248efff5612b?source=rss-f477c45ed522------2</link>
            <guid isPermaLink="false">https://medium.com/p/248efff5612b</guid>
            <category><![CDATA[will-ai-replace-jobs]]></category>
            <category><![CDATA[ai-replace-human]]></category>
            <dc:creator><![CDATA[Prity Rani Das]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 20:20:48 GMT</pubDate>
            <atom:updated>2026-09-23T20:20:48.851Z</atom:updated>
            <content:encoded><![CDATA[<p>A dangerous corporate trend is quietly accelerating across the tech and knowledge sectors:</p><p>Lay off three engineers, buy a suite of cutting-edge AI agents, and hand the entire department’s workload to the last person standing.</p><p>On a quarterly spreadsheet, the math looks seductive. Operating expenses plummet overnight, executive bonuses look secured, and leadership can boast about being an “AI-first” organization.</p><p>In reality, this approach trades a manageable operational expense for catastrophic structural fragility. It creates a critical <strong>Single Point of Failure (SPOF)</strong> under the illusion of productivity.</p><p>Here is why replacing your team with “1 human + a fleet of AI bots” is a ticking time bomb and what resilient organizations are doing instead.</p><h3>1. The “Review Fatigue” Trap (Reverse-Engineering is Harder than Writing)</h3><p>Writing code or drafting strategy is an intentional, constructive process. You build the logic piece by piece, anticipating edge cases and security implications as you go.</p><p>Reviewing machine-generated output is completely different: it demands relentless <strong>reverse-engineering</strong>.</p><p>AI agents generate massive volumes of articulate, confident, and syntactically flawless work in seconds. But hidden beneath that polish are hallucinations, subtle logical bugs, and architecture anti-patterns. Forcing a single engineer to validate hundreds of automated pull requests and design decisions induces acute cognitive fatigue.</p><p>Eventually, attention slips, review standards degrade, and critical vulnerabilities quietly slip into production.</p><h3>2. A “Truck Factor” of One</h3><p>When four roles are consolidated into one, you aren’t just consolidating tasks; you are concentrating domain knowledge, business logic, system context, and deployment responsibility into a single brain.</p><p>If that person gets sick, burns out, or accepts a better offer, the institutional knowledge of that system vanishes overnight. Your company is suddenly held hostage by a <strong>Bus Factor of 1</strong>. No prompt library or vector database can replicate the nuanced context of someone who understands how legacy quirks interact with live clients.</p><h3>3. Killing the Junior Talent Pipeline</h3><p>Every senior architect and tech lead was once an entry-level engineer who broke a staging branch and learned how to fix it.</p><p>When organizations eliminate junior and mid-level roles in favor of autonomous agents, they sever their talent pipeline at the root. Who will understand the core architecture five years from now? Who will debug edge cases that AI has never encountered?</p><p>Relying entirely on pre-existing senior talent without nurturing the next generation ensures an acute leadership crisis in the near future.</p><h3>4. Accountability vs. Output</h3><p>AI agents can generate an infinite stream of artifacts, but <strong>an algorithm cannot take accountability for an outage, a data breach, or a flawed architectural decision.</strong></p><p>When you delegate the work of four people to one person with automated tools, that individual shoulders four times the emotional and professional liability. That level of unshared responsibility is a direct path to immediate burnout.</p><h3>The Real Advantage: Augmentation, Not Replacement</h3><p>Forward-thinking tech leaders understand a simple truth: <strong>AI is a productivity multiplier, not a drop-in replacement for human judgment.</strong></p><p>Instead of slashing a 4-person team down to 1, elite teams keep the four people and arm each of them with AI tooling:</p><p><strong>Metric 1: Person + AI Agents 4-Person Team Armed with AIThroughput </strong>Bottlenecked by 1 human reviewer Parallel execution with high-velocity code<strong> Quality degrades</strong> due to cognitive overload. Peer review and sanity checks remain intact. <strong>Operational Risk Catastrophic</strong> (Single Point of Failure) Resilient and distributed knowledge focus Frantic context-switching and firefighting High-leverage architecture and innovation</p><h3>Final Thoughts</h3><p>The goal of artificial intelligence in engineering is not to see how few humans you can get away with employing. It is to elevate your existing team so they spend less time writing boilerplate and more time solving complex, high-value engineering challenges.</p><p>Tools scale output. People carry vision, responsibility, and architectural nuance.</p><p>Cut your team to the bone, and your systems will soon follow. Empower your team with intelligent tooling, and you build a company built to last.</p><p><em>What has been your experience with AI tooling on your engineering team? Has it accelerated your workflow, or are you spending more time reviewing hallucinations? Let’s discuss in the comments below.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=248efff5612b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Domain-Driven Design (DDD) in .NET: A Practical Guide]]></title>
            <link>https://medium.com/@prityd825/domain-driven-design-ddd-in-net-a-practical-guide-12264eb5d29f?source=rss-f477c45ed522------2</link>
            <guid isPermaLink="false">https://medium.com/p/12264eb5d29f</guid>
            <dc:creator><![CDATA[Prity Rani Das]]></dc:creator>
            <pubDate>Fri, 04 Sep 2026 15:39:23 GMT</pubDate>
            <atom:updated>2026-09-04T15:39:23.341Z</atom:updated>
            <content:encoded><![CDATA[<p>When building a software application, especially an enterprise application, it is easy to focus too much on controllers, databases, APIs, and frameworks.</p><p>But there is a more important question:</p><blockquote><strong><em>What is the actual business problem that our software is trying to solve?</em></strong></blockquote><p>This is where <strong>Domain-Driven Design (DDD)</strong> comes in.</p><p>DDD is an approach to software development that focuses on understanding and modeling the <strong>business domain</strong> and then designing the software around that domain.</p><p>In this article, we will explore the fundamental concepts of DDD and how they can be implemented in a <strong>.NET application</strong>.</p><h3>What is Domain-Driven Design?</h3><p><strong>Domain-Driven Design</strong> is a software design approach introduced by Eric Evans that puts the business domain at the center of application design.</p><p>The main idea is simple:</p><blockquote><strong><em>The structure of our software should reflect the business it is solving.</em></strong></blockquote><p>For example, imagine we are building an e-commerce system.</p><p>The business might have concepts such as:</p><ul><li>Customer</li><li>Order</li><li>Product</li><li>Payment</li><li>Shipment</li><li>Discount</li></ul><p>Instead of treating these simply as database tables, DDD encourages us to model them as meaningful business concepts with their own rules and behaviors.</p><p>For example:</p><pre>order.AddItem(product, quantity);<br>order.Cancel();<br>order.CalculateTotal();</pre><p>The Order object is not just holding data. It also contains behavior related to an order.</p><h3>Why Do We Need DDD?</h3><p>Consider a typical application where business logic is placed inside controllers or services:</p><pre>[HttpPost]<br>public async Task&lt;IActionResult&gt; CreateOrder(OrderDto dto)<br>{<br>    if (dto.Quantity &lt;= 0)<br>        return BadRequest();</pre><pre>    if (dto.Price &lt; 0)<br>        return BadRequest();</pre><pre>    // More business rules...</pre><pre>    // Database operations...</pre><pre>    return Ok();<br>}</pre><p>As the application grows, controllers and services can become extremely large.</p><p>Business rules become scattered across:</p><ul><li>Controllers</li><li>Services</li><li>Repositories</li><li>Database queries</li><li>Utility classes</li></ul><p>This makes the system difficult to understand and maintain.</p><p>DDD attempts to solve this problem by putting important business rules closer to the domain model.</p><h3>The Main Building Blocks of DDD</h3><p>DDD contains several important concepts.</p><p>The most common ones are:</p><ol><li>Entity</li><li>Value Object</li><li>Aggregate</li><li>Aggregate Root</li><li>Repository</li><li>Domain Service</li><li>Domain Event</li><li>Bounded Context</li></ol><p>Let’s understand each one.</p><h3>1. Entity</h3><p>An <strong>Entity</strong> is an object that has a unique identity.</p><p>For example:</p><pre>public class Customer<br>{<br>    public Guid Id { get; private set; }</pre><pre>    public string Name { get; private set; }</pre><pre>    public Customer(Guid id, string name)<br>    {<br>        Id = id;<br>        Name = name;<br>    }<br>}</pre><p>Even if the customer’s name changes:</p><pre>Name: John</pre><p>to:</p><pre>Name: John Smith</pre><p>it is still the same customer because its identity remains the same.</p><p>The identity is usually represented by an ID.</p><h3>2. Value Object</h3><p>A <strong>Value Object</strong> does not have its own identity.</p><p>It is defined by its values.</p><p>For example, an address:</p><pre>public record Address(<br>    string Street,<br>    string City,<br>    string Country<br>);</pre><p>If two addresses have exactly the same values, they can be considered equal.</p><pre>Address A<br>Dhaka<br>Bangladesh</pre><pre>Address B<br>Dhaka<br>Bangladesh</pre><p>The important thing here is the value, not an ID.</p><p>Other examples include:</p><ul><li>Money</li><li>EmailAddress</li><li>PhoneNumber</li><li>DateRange</li><li>Coordinates</li></ul><h3>3. Aggregate</h3><p>An <strong>Aggregate</strong> is a group of related domain objects that are treated as one consistency boundary.</p><p>For example:</p><pre>Order<br>│<br>├── OrderItem<br>├── OrderItem<br>├── ShippingAddress<br>└── Payment</pre><p>Here, Order can act as the main object controlling the other objects.</p><p>An important rule is:</p><blockquote><em>External code should normally interact with an Aggregate through its Aggregate Root.</em></blockquote><h3>4. Aggregate Root</h3><p>The <strong>Aggregate Root</strong> is the main entry point to an aggregate.</p><p>For example:</p><pre>public class Order<br>{<br>    private readonly List&lt;OrderItem&gt; _items = new();</pre><pre>    public Guid Id { get; private set; }</pre><pre>    public IReadOnlyCollection&lt;OrderItem&gt; Items =&gt; _items;</pre><pre>    public void AddItem(Product product, int quantity)<br>    {<br>        if (quantity &lt;= 0)<br>            throw new ArgumentException(&quot;Quantity must be greater than zero.&quot;);</pre><pre>        _items.Add(new OrderItem(product.Id, quantity));<br>    }<br>}</pre><p>Here:</p><pre>Order<br>  ↓<br>OrderItem</pre><p>Order is the Aggregate Root.</p><p>Instead of allowing another part of the application to directly manipulate OrderItem, we can control changes through Order.</p><p>This helps protect business invariants.</p><h3>5. Repository</h3><p>A Repository provides an abstraction for accessing aggregates.</p><p>For example:</p><pre>public interface IOrderRepository<br>{<br>    Task&lt;Order?&gt; GetByIdAsync(Guid id);</pre><pre>    Task AddAsync(Order order);<br>}</pre><p>Notice that this interface doesn’t care whether the data comes from:</p><ul><li>SQL Server</li><li>PostgreSQL</li><li>MongoDB</li><li>Another API</li></ul><p>The Domain layer only knows about the abstraction.</p><p>The actual implementation can live in Infrastructure:</p><pre>public class OrderRepository : IOrderRepository<br>{<br>    private readonly AppDbContext _context;</pre><pre>    public OrderRepository(AppDbContext context)<br>    {<br>        _context = context;<br>    }</pre><pre>    public async Task&lt;Order?&gt; GetByIdAsync(Guid id)<br>    {<br>        return await _context.Orders<br>            .FirstOrDefaultAsync(x =&gt; x.Id == id);<br>    }</pre><pre>    public async Task AddAsync(Order order)<br>    {<br>        await _context.Orders.AddAsync(order);<br>        await _context.SaveChangesAsync();<br>    }<br>}</pre><p>This separation helps keep the domain independent from infrastructure.</p><h3>6. Domain Service</h3><p>Sometimes a business rule does not naturally belong to a single entity.</p><p>In that situation, we can use a <strong>Domain Service</strong>.</p><p>For example:</p><pre>public class DiscountService<br>{<br>    public decimal CalculateDiscount(<br>        Customer customer,<br>        Order order)<br>    {<br>        // Complex business rules</pre><pre>        return 0;<br>    }<br>}</pre><p>The important point is that this service contains <strong>business logic</strong>, not technical logic.</p><p>A good Domain Service should not be used simply because “services are common.”</p><p>First ask:</p><blockquote><em>Can this behavior naturally belong to an Entity or Value Object?</em></blockquote><blockquote>If yes, keep it there.</blockquote><h3>7. Domain Events</h3><p>A <strong>Domain Event</strong> represents something important that happened in the domain.</p><p>Examples:</p><pre>OrderPlaced<br>PaymentCompleted<br>OrderCancelled<br>CustomerRegistered</pre><p>For example:</p><pre>public record OrderPlacedEvent(Guid OrderId);</pre><p>After an order is placed, other parts of the system might need to:</p><ul><li>Send an email</li><li>Update inventory</li><li>Notify shipping</li><li>Create an invoice</li></ul><p>Instead of putting everything inside the Order method, we can publish a domain event.</p><p>Conceptually:</p><pre>Order Placed<br>     │<br>     ├── Send Email<br>     ├── Update Inventory<br>     ├── Create Invoice<br>     └── Notify Shipping</pre><p>This can reduce coupling between different parts of the system.</p><h3>8. Bounded Context</h3><p>One of the most important DDD concepts is <strong>Bounded Context</strong>.</p><p>Large systems often contain the same word with different meanings.</p><p>For example, consider an e-commerce company.</p><p>The word “Product” might mean different things in different parts of the business.</p><pre>Catalog Context<br>Product = Name + Description + Images</pre><pre>Inventory Context<br>Product = Stock + Warehouse + Quantity</pre><pre>Pricing Context<br>Product = Price + Discount + Tax</pre><p>DDD does not force us to create one giant Product model containing everything.</p><p>Instead, each Bounded Context can have its own model.</p><pre>Catalog<br>   ↓<br>Product</pre><pre>Inventory<br>   ↓<br>InventoryItem</pre><pre>Pricing<br>   ↓<br>Price</pre><p>This is extremely useful in large enterprise systems and microservice architectures.</p><h3>DDD Architecture in .NET</h3><p>A common approach is to combine DDD with <strong>Clean Architecture</strong>.</p><p>A typical project structure might look like this:</p><pre>MyStore<br>│<br>├── MyStore.Domain<br>│   ├── Entities<br>│   ├── ValueObjects<br>│   ├── Aggregates<br>│   ├── Events<br>│   ├── Services<br>│   └── Repositories<br>│<br>├── MyStore.Application<br>│   ├── Commands<br>│   ├── Queries<br>│   ├── DTOs<br>│   └── Handlers<br>│<br>├── MyStore.Infrastructure<br>│   ├── Persistence<br>│   ├── Repositories<br>│   └── ExternalServices<br>│<br>└── MyStore.API<br>    ├── Controllers<br>    └── Program.cs</pre><p>Let’s understand the responsibilities.</p><h3>Domain Layer</h3><p>The Domain layer is the heart of the application.</p><p>It contains:</p><ul><li>Entities</li><li>Value Objects</li><li>Aggregates</li><li>Domain Events</li><li>Domain Services</li><li>Repository interfaces</li></ul><p>The Domain layer should ideally have minimal dependencies on frameworks and infrastructure.</p><h3>Application Layer</h3><p>The Application layer coordinates use cases.</p><p>For example:</p><pre>Create Order<br>Cancel Order<br>Get Order<br>Update Customer<br>Process Payment</pre><p>A command handler might look like:</p><pre>public class CreateOrderHandler<br>{<br>    private readonly IOrderRepository _repository;</pre><pre>    public CreateOrderHandler(IOrderRepository repository)<br>    {<br>        _repository = repository;<br>    }</pre><pre>    public async Task Handle(CreateOrderCommand command)<br>    {<br>        var order = new Order();</pre><pre>        order.AddItem(<br>            command.Product,<br>            command.Quantity);</pre><pre>        await _repository.AddAsync(order);<br>    }<br>}</pre><p>The Application layer tells the Domain what needs to happen.</p><h3>Infrastructure Layer</h3><p>Infrastructure handles technical concerns.</p><p>For example:</p><pre>Entity Framework Core<br>SQL Server<br>Redis<br>Email<br>File Storage<br>Message Broker<br>External APIs</pre><p>For example:</p><pre>public class OrderRepository : IOrderRepository<br>{<br>    private readonly AppDbContext _context;</pre><pre>    // EF Core implementation<br>}</pre><p>The Domain doesn’t need to know that Entity Framework Core is being used.</p><h3>Presentation Layer</h3><p>This is usually the ASP.NET Core API.</p><p>For example:</p><pre>[ApiController]<br>[Route(&quot;api/orders&quot;)]<br>public class OrderController : ControllerBase<br>{<br>    private readonly CreateOrderHandler _handler;</pre><pre>    public OrderController(CreateOrderHandler handler)<br>    {<br>        _handler = handler;<br>    }</pre><pre>    [HttpPost]<br>    public async Task&lt;IActionResult&gt; Create(<br>        CreateOrderCommand command)<br>    {<br>        await _handler.Handle(command);</pre><pre>        return Ok();<br>    }<br>}</pre><p>The controller should remain relatively thin.</p><p>Its responsibility is mainly:</p><pre>HTTP Request<br>     ↓<br>Application Layer<br>     ↓<br>Domain<br>     ↓<br>Infrastructure</pre><h3>DDD + CQRS</h3><p>DDD is also commonly combined with <strong>CQRS (Command Query Responsibility Segregation)</strong>.</p><p>The basic idea is to separate:</p><h3>Commands</h3><p>Commands change state.</p><pre>CreateOrder<br>CancelOrder<br>UpdateCustomer</pre><h3>Queries</h3><p>Queries retrieve data.</p><pre>GetOrder<br>GetCustomer<br>GetOrders</pre><p>Conceptually:</p><pre>Application<br>                 │<br>        ┌────────┴────────┐<br>        ↓                 ↓<br>    Commands           Queries<br>        ↓                 ↓<br>    Domain             Read Model<br>        ↓<br>   Write Database</pre><p>This separation can make complex applications easier to maintain.</p><p>However, CQRS is not mandatory for DDD.</p><h3>DDD vs Traditional CRUD</h3><p>A traditional CRUD application might look like:</p><pre>Controller<br>    ↓<br>Service<br>    ↓<br>Repository<br>    ↓<br>Database</pre><p>The main focus is often:</p><pre>Create<br>Read<br>Update<br>Delete</pre><p>DDD focuses more on:</p><pre>Business Rules<br>     ↓<br>Domain Model<br>     ↓<br>Business Behavior</pre><p>For example, instead of simply doing:</p><pre>order.Status = &quot;Cancelled&quot;;</pre><p>we might have:</p><pre>order.Cancel();</pre><p>Inside Cancel():</p><pre>public void Cancel()<br>{<br>    if (Status == OrderStatus.Shipped)<br>        throw new InvalidOperationException(<br>            &quot;A shipped order cannot be cancelled.&quot;);</pre><pre>    Status = OrderStatus.Cancelled;<br>}</pre><p>Now the business rule lives with the domain object.</p><h3>When Should You Use DDD?</h3><p>DDD is especially useful when your application has:</p><ul><li>Complex business rules</li><li>Multiple business processes</li><li>Large teams</li><li>Long-term maintenance requirements</li><li>Multiple integrations</li><li>Complex workflows</li><li>Enterprise-level requirements</li></ul><p>Examples include:</p><pre>Banking<br>E-commerce<br>Insurance<br>Healthcare<br>ERP<br>Logistics<br>Payment Systems</pre><p>For a very simple CRUD API, implementing every DDD pattern can actually create unnecessary complexity.</p><p>The goal is not:</p><blockquote><em>“Use DDD everywhere.”</em></blockquote><p>The goal is:</p><blockquote><strong><em>Use DDD where domain complexity justifies it.</em></strong></blockquote><h3>Final Thoughts</h3><p>DDD is not simply about creating folders such as Domain, Application, and Infrastructure.</p><p>The real purpose of DDD is to <strong>understand the business and represent that understanding in the software model</strong>.</p><p>In a .NET application, DDD can work particularly well with:</p><pre>ASP.NET Core<br>       +<br>Entity Framework Core<br>       +<br>Clean Architecture<br>       +<br>CQRS<br>       +<br>MediatR<br>       +<br>Domain Events</pre><p>But these technologies are secondary.</p><p>The most important part is the <strong>domain model and the business rules</strong>.</p><p>A well-designed DDD application should make it possible for a developer to look at the code and understand the business:</p><pre>Customer<br>   ↓<br>Order<br>   ↓<br>OrderItem<br>   ↓<br>Payment<br>   ↓<br>Shipment</pre><p>Rather than seeing only:</p><pre>Controller<br>   ↓<br>Service<br>   ↓<br>Repository<br>   ↓<br>Database Table</pre><p>That is the real value of Domain-Driven Design: <strong>the code starts speaking the language of the business.</strong></p><p><strong>Disclaimer:</strong> This article was prepared with the assistance of ChatGPT. The content has been reviewed and edited by the author.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12264eb5d29f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>