Re:OOP Is Dead, Long Live OOP
by the_af on Thursday October 18, 2018 @03:25PM
(#18251349)
> If you expose things as data, just be honest about it and treat it as such. It's already out in the open, why hide it in objects again?
What if this exposure occurs at the boundaries of your system, or when interacting with certain libraries? Surely there's value as "mostly" handling some things as objects within your system, even if you expose their innards and maybe break their invariants at the boundaries.
What if this exposure occurs at the boundaries of your system, or when interacting with certain libraries? Surely there's value as "mostly" handling some things as objects within your system, even if you expose their innards and maybe break their invariants at the boundaries.