Domain Objects Without Behavior? The Case of the Anemic Domain Model

Today is a great day: you will begin to develop the new greenfield project of the soon-very-successful startup you work for as a PHP magician. You and Dave (your colleague developer) have been chosen to develop this new application. Finally you will do something else than fixing and refactoring crappy code from old PHP 4 spaghetti projects! Everything begins well. You set up the project’s backbones quickly and Dave is in charge to implement the first functionalities. »

9 min. read