2 ms·
I believe our industry overuses the term "abstraction", and incorrectly. You're probably right that he meant something different by it. In your example, the OA
by hcarvalhoalves 7y ago
I believe our industry overuses the term "abstraction", and incorrectly. You're probably right that he meant something different by it.
In your example, the OAuth token provider is concrete, and not having to know the details of OAuth would be an example of encapsulation.
Abstraction would be deriving general rules (of authentication, perhaps?) by drawing from the OAuth example, and by induction being able to generalize for anything not OAuth specific.
- magicalhippo 7y agoSo wouldn't a further abstraction be to introduce an auth provider that returns a set of HTTP header values to be used, or something along those lines? I could then implement the OAuth auth provider based on the OAuth token providers interface I got now. And this would allow me to not think about how exactly the auth is done at all, just that it is done somehow. Isn't this the layers of abstractions mentioned? If so, how is this bad?