Encapsulate!

Encapsulate! No developers were harmed in this article! The object names was changed to protect the developers involved. I often see objects implemented as value objects (such as POJOs) that should be fully fledge objects instead! I have implemented a bunch of them myself over the years – but they usually infer problems like bugs … Read more