JS.weekly() => #25

JavaScripting.com
JS.weekly()
Published in
1 min readJan 25, 2019

Here are the top three articles we found interesting this week:

Why I’ve stopped exporting defaults from my JavaScript modules

“ I’ve had several productivity problems importing default exports in my projects. While none of the problems are necessarily impossible to overcome, using named imports and exports seems to better fit my preferences when coding. Making things explicit and leaning heavily on tooling makes me a productive coder, and insofar as named exports help me do that, I will likely favor them for the foreseeable future.”

Common API mistakes and how to avoid them

Here are a few tips:

  • Be stingy with data.
  • Represent upstream data as well-defined objects.
  • Use forward compatible attribute naming.
  • Normalize concepts and attributes.
  • Use positive, “happy” names.
  • Apply the Robustness Principle.
  • Test all error conditions.

Functional Patterns with TypeScript

Few patterns how to use TypeScript for higher order functions.

There is always something interesting on Twitter:

We are adding new libraries to JavaScripting.com every week. Here is one worth checking out:

Bootstrap Vue

BootstrapVue provides one of the most comprehensive implementations of Bootstrap 4 components and grid system for Vue.js and with extensive and automated WAI-ARIA accessibility markup.

JS.weekly() is a weekly digest of the best JavaScript articles, hand-picked by our experts in the JavaScripting community, sponsored by Salsita Software. Don’t forget to follow us on Twitter.

--

--

JavaScripting.com
JS.weekly()

The best JavaScript, web development and general programming articles of the day. Sponsored by Salsita Software (http://www.salsitasoft.com)