Syntax - Tasty Web Development Treats
Hasty Treat - Std Lib in JavaScript

Hasty Treat - Std Lib in JavaScript

Syntax - Tasty Web Development Treats

18:36

About this episode

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:
KV Storage: the Web’s First Built-in Module
8:36 - What do we want to see?
Deep clone Basically all of Lodash

util.isDeepScrictEqual
Async json.parse() / json.stringify
UUID
URL Lib for building and parsing URLs
Missing Array Methods Most of underscore JS

15:53 - International
Currency Formatting
Lists
DateTimeFormat
RelativeTimeFormat
Links JavaScript Standard Library Proposal
Add remaining Underscore / Lodash features
JavaScript standard library contents
Tweet us your tasty treats! Scott’s Instagram
LevelUpTutorials Instagram
Wes’ Instagram
Wes’ Twitter
Wes’ Facebook
Scott’s Twitter
Make sure to include @SyntaxFM in your tweets

More from Syntax - Tasty Web Development Treats

Scott and Wes get into closing the gap between your taste and your skills, with tips on design inspiration, snappier animations and easing. They also share an entry-level setup for recording video les…

1h 6m

Scott and CJ dig into Exact, Expo’s new Rust-based runtime that takes one codebase to web, iOS, macOS and Linux with no React Native involved, plus Bombadil’s property-based testing for web UIs. They…

1h 11m

Scott and Wes sit down with Michael Arnaldi to dig into Effect v4 and why guardrails matter now that AI agents are writing so much of our code. They discuss going zero dependencies, a 5x smaller bundl…

50m

Scott and Wes sit down with GitHub’s Kyle Daigle to ask what the hell is going on with GitHub: the downtime, the agent traffic spike, and the infrastructure overhaul decoupling storage from compute. P…

31m

Wes, Scott, and CJ are back with two weeks of news: Reddit is forcing everyone to log in, r/opensource bans anything AI, and CSS-Tricks is independent again. Plus Anomaly's Hex dictation app, Mitchell…

1h 35m