5

Hasty Treat - Std Lib in JavaScript

 2 years ago
source link: https://syntax.fm/show/151/hasty-treat-std-lib-in-javascript
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Jun 10th, 2019

Hasty Treat - Std Lib in JavaScript

👇 Download Show✏️ Edit Show Notes

In this Hasty Treat, Scott and Wes discuss the Javascript standard library proposal — what it is, how it could influence dev, and what they'd like to see.

Sentry - Sponsor

If you want to know what's happening with your errors, track them with Sentry. Sentry is open-source error tracking that helps developers monitor and fix crashes in real time. Cut your time on error resolution from five hours to five minutes. It works with any language and integrates with dozens of other services. Syntax listeners can get two months for free by visiting Sentry.io and using the coupon code "tastytreat".

Show Notes

1:38 - What is a Standard Lib?

  • Still experimental
  • Built-in modules don't have to be downloaded because they ship with the browser
  • Not exposing built-in modules globally has a lot of advantages:
    • They won't add any overhead to starting up a new JavaScript runtime context (e.g. a new tab, worker, or service worker)
    • They won't consume any memory or CPU unless they're actually imported
    • They don't run the risk of naming collisions with other variables defined in your code

6:47 - Key Value Storage is the first one:

8:36 - What do we want to see?

  • Deep clone
    • Basically all of Lodash
  • util.isDeepScrictEqual
  • Async json.parse() / json.stringify
  • URL Lib for building and parsing URLs
  • Missing Array Methods
    • Most of underscore JS

15:53 - International

  • Currency Formatting
  • Lists
  • DateTimeFormat
  • RelativeTimeFormat

Links

Tweet us your tasty treats!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK