Code

Watch our Developer Advocates code live every week.

Refactoring towards Encapsulation

Watch on Twitch
11:00 AM PST on Wednesday, Jan 19, 2022

Refactoring towards Encapsulation

Refactoring towards Encapsulation

Jan 19, 2022


In this episode

Anemic entities, lot of setters and getters and data consistency loss. Who has not seen that? In this talk we are going to refactor a classical anemic entity with services that contain logic and introduce object orientation. All safely with tests.

Hosts

Jakub Pilimon

Jakub Pilimon

Jakub Pilimon is a Staff Technologist at VMware, blogger, programmer, and trainer. His main duty is to tackle complex enterprises with Domain-Driven Design and to propose a model and architecture that solves a problem. Sometimes he is involved in refactoring projects. When he isn’t coding, you can find him riding his bike, reading, or practicing kitesurfing.

Jakub’s pet projects can be found at https://github.com/ddd-by-examples.