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

2 things: 3rd-party API that only works on "beans" and thin object (not your Services or DAOs that use DI heavily).


You can't do much with 3rd-party APIs. For thin objects, a best practice is to keep them immutable by having only getters, but then you generally end up with Builder boilerplate.




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

Search: