top | item 42511476

(no title)

westcoast49 | 1 year ago

It comes down to the quality of the abstractions. If they are well made and well named, you'd rather read this:

  axios.get('https://api.example.com', {
      headers: { 'Authorization': 'Bearer token' },
      params: { key: 'value' }
  })
  .then(response => console.log(response.data))
  .catch(error => console.error(error));
than to read the entire implementations of get(), then() and catch() inlined.

discuss

order

No comments yet.