Skip to content
0:00 / 0:00

#anemicdomainmodel#domain-drivendesign#refactoring

This Is How the Anemic Domain Model Turns Bad

Zoran on C#

46K subscribers • 1 video on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Zoran Horvat
  • An opinion. It argues one side of a question engineers disagree on.

Intermediate. Assumes working knowledge.

15K views2 years ago2 recommendations

Software designProgramming languagesDesign patternsSoftware architectureObject-oriented design

Zoran Horvat explains how anemic domain models and primitive obsession lead to bloated service layers, and how to build rich domain models.

Learn more at Brilliant brilliant.org/ZoranHorvat/ Use this link for a 30-day free trial and 20% off of an annual premium subscription. Anemic domain models might be the culprit, stripping away everything object-oriented programming has to offer. In this video, I dive deep into how primitive obsession leads to fat service layers and a bloated codebase. Learn how to avoid these pitfalls, embrace rich domain models, and unlock the full potential of OOP. Don't let outdated practices hold you back. Don't write code like it's 1988! Watch the entire series: * 1. Fat services layer youtu.be/rA_4lb8UCQo 2. Combinatorial explosion of methods youtu.be/g63pLbUrzjI 3. Eliminating data clumps youtu.be/k1fIRmTsQMU 4. Adding polymorphism youtu.be/jgtPwXHTdHc 5. Make Your Object Model More Object-Oriented youtu.be/vSrKCHukzqY 6. How Far is Your Object-Oriented Code From Functional Programming? youtu.be/kVEL6DWtOeM Become a sponsor to access source code ► patreon.com/zoranhorvat Join Discord server with topics on C# ► codinghelmet.com/go/discord Enroll course *Beginning Object-Oriented Programming with C#* ► codinghelmet.com/go/beginning-oop-with-csharp Subscribe ► youtube.com/channel/UCxsWfh8LCcn55mFB6zGBT1g?sub_confirmatio… ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ 👨 About Me 👨 Hi, I’m Zoran, I have more than 20 years of experience as a software developer, architect, team lead, and more. I have been programming in C# since its inception in the early 2000s. Since 2017 I have started publishing professional video courses at Pluralsight and Udemy and by this point, there are over 100 hours of the highest-quality videos you can watch on those platforms. On my YouTube channel, you can find shorter video forms focused on clarifying practical issues in coding, design, and architecture of .NET applications.❤️

Why it's here

2 people recommend this

What people say. Recommended for understanding how anemic domain models cause messy service layers and how to improve them.

u/entityadamin r/dotnet • Recommends

On “DAE just... *not* map their entities to DTOs?”

I'll take AutoMapper over an anemic domain model any day. link to this video

u/joximin r/softwarearchitecture • Recommends

On “"Service" files are becoming too big. New layer to lighten the Service layer ?”

Mess in Service layer can be conected with anemic models. Try to improve them: link to this video