Syntax - Tasty Web Development Treats

868: The State of JavaScript

81 snips
Jan 15, 2025
Delve into the fascinating findings from the State of JavaScript survey, revealing trending features and advanced techniques. Explore modern browser APIs, including exciting innovations like the Temporal API, while the hosts share humorous experiences. Discover the ever-changing landscape of JavaScript frameworks, from the rise of Svelte to the intricacies of meta frameworks. Enjoy insights into testing tools and the impact of AI on programming, all wrapped in personal anecdotes and nostalgia for beloved video games like Mario Party.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

Nullish Coalescing

  • Use nullish coalescing (??) for cleaner fallback values with variables that might be null or undefined.
  • It's better than ternaries because it only checks for null/undefined, not all falsy values like 0 or empty strings.
ANECDOTE

Dynamic Imports in Next.js

  • Wes is rebuilding his website using dynamic imports in Next.js to load markdown files.
  • Dynamic imports are needed to get a list of blog posts initially but they can cause Webpack issues.
ADVICE

Array.toSorted

  • Prefer toSorted over sort for arrays.
  • toSorted is non-destructive and returns a new sorted array without modifying the original.
Get the Snipd Podcast app to discover more snips from this episode
Get the app