JavaJava
Byte size15min
BEGINNER

Are We Still Doing OOP? 🤔 Let's Tackle Anemic Domain Models Together

This session explores the Anemic Domain Model antipattern—where data and logic are separated in supposedly object-oriented code. It explains why this violates OO principles, how to identify and fix it, and how Domain-Driven Design and Onion Architecture can help create truly object-oriented, maintainable, and well-structured systems.

talk.summaryAiDisclaimer

Michael Koers
Michael KoersInfo Support

talkDetail.whenAndWhere

Wednesday, April 1, 13:30-13:45
Zaal 10
talks.description
Java is an object-oriented (OO) language, but are we actually writing object-oriented code? In my years working as a software consultant I’ve seen plenty of codebases and with it, a repeating pattern: we keep splitting our data from our logic (myself included)! That clashes with the idea of object-oriented programming: adding behaviour to our objects. This antipattern has a name: Anemic Domain Models, and knowing how to tackle them will help you write more structurally sound and maintainable code. This is especially relevant nowadays, with design methodologies like Domain-Driven Design and Onion Architecture focusing our attention to structuring our code in a better way.

We’ll discuss the pitfalls of the Anemic Domain Model antipattern, where it can be found in your systems, but also how to battle it, and what the benefits are for writing code the real object-oriented way. So, if you are interested in coding practices, and want to learn more about the way we can write code, make sure to join this session!
domain
objectoriented
java
antipattern
talks.speakers
Michael Koers

Michael Koers

Info Support

Netherlands

Michael Koers is a software consultant at Info Support, with most of his knowledge in Java and Azure. He enjoys sharing his knowledge, teaching and challenging others, and gets excited about home automation. He is also an editor for the NLJUG (Dutch Java User Group) magazine.