Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you replace the Object-Oriented mechanism for encapsulation with some other mechanism for encapsulation then there's probably no reason for this taboo.

But in 99.999999% of real-world projects, anemic object-oriented code disregards encapsulation completely, and so business logic (the core reason why you're building the software in the first place) gets both duplicated and strewn randomly throughout the entire code project code.

Or in many cases, if the team disregards encapsulation at the type level then they're likely to also disregard encapsulation at the API/service/process level as well.



Ok, I see where you are coming from, and I agree. However, I would like to add that poorly implemented DDD can be just as awful.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: