I don't understand this trend of hiding data in OOP, data is what computation is all about?!
Conversation
Hiding is nice because that way do don't end up accidentally depending on internal implementation stuff, which could make it harder to change stuff down the line. ML modules and abstract datatypes are also great approaches to this!
2
9
Jazz. I've noticed some people in FP don't like hiding at all, but I'm not convinced. I think expressing intentions on how API should be used is a powerful way to say “this is what this library does and its limitations”
1
1
Yeah - I think it's nice able to hide away stuff in programming - so that you have a far smaller surface area to keep track of. Either as a user, or a library maintainer.


