MVC critics and best practices

While MVC remains the go-to approach for designing a UI, many criticisms arose with its prevalence. Most critics are actually pointing a finger at the incorrect use of the pattern.

Anemic Domain Model

Eric Evans' influential book Domain Driven Design, also abbreviated as DDD, defines a set of architecture rules leading to a better integration of the business domain inside the code.

One of the core ideas is to take advantage of the object-oriented paradigms inside the domain objects. Going against this principle is sometimes referred to as Anemic Domain Model. A good definition of this problem can be found on Martin Fowler's blog (http://www.martinfowler.com/bliki/AnemicDomainModel.html).

An Anemic Model typically exhibits ...

Get Spring MVC: Designing Real-World Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.