Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Thanks for the answer! To better illustrate my concern I will use the example you gave. Let's say I use a library that can "do a HTTP request to an API and process its JSON response". But very often I call this function without passing any body, just the headers, so I wrote another function, which calls this function and passes null as body. Would this also be an abstraction? I don't feel like I've simplified anything, just transformed it. Commented Feb 7, 2021 at 10:58
  • The library is the abstraction. Both functions are backed by the same abstraction. Anyways, you could edit the question and add code to illustrate your doubts. Overloading functions is not the kind of abstraction Arseni is treating in his answer (IMO). Commented Feb 7, 2021 at 11:17
  • @WojtekWencel: I edited my answer. Commented Feb 7, 2021 at 11:17