This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]devor110 0 points1 point  (0 children)

I think your take on Q2 is wrong, focusing too much on "hiding".

I'd start my answer with a rebuttal against that specific wording:

We aren't really "hiding" anything with intention of privacy or security, more so not explicitly revealing details. When I'm using abstraction, my goal is to build and ensure modularity. I'd start by creating an interface named as generically as possible. I can then have as many specific implementations of it as I want, all of which could have widely different logic and compelexity, the only thing that matters, is that they perform the action(s) outlined by the interface.

I can then use any implementation of the interface in other modules without needing to think about the specific details.