

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.
AI Snips
Chapters
Transcript
Episode notes
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.
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.
Array.toSorted
- Prefer
toSorted
oversort
for arrays. toSorted
is non-destructive and returns a new sorted array without modifying the original.