Syntax - Tasty Web Development Treats

Potluck - enums, WASM, Lighthouse, Redirects

Dec 15, 2021
The hosts tackle a potluck of web development topics, diving into the nuances of user experience metrics and the impact of Google's initiatives. They discuss the importance of real user interactions in the Lighthouse scoring system, with insights on NPM command safety. The conversation shifts to enums and the advantages of WebAssembly, enhancing application performance. A lively framework showdown compares Astro and SvelteKit, while the challenges of browser updates and audio troubleshooting bring relatable tech issues to light.
Ask episode
AI Snips
Chapters
Books
Transcript
Episode notes
ADVICE

Enums vs. Unions

  • Use enums over string unions in TypeScript when you need to use the values in your JavaScript code.
  • Enums allow direct comparisons, making debugging and refactoring easier.
INSIGHT

WebAssembly Explained

  • WebAssembly (Wasm) lets you run other languages in the browser, improving performance for complex tasks.
  • Figma uses Wasm for C++ and Rust, while StackBlitz uses it for Node.js.
INSIGHT

Micro Frontends

  • Micro frontends enable using multiple frontend frameworks in a single project.
  • This approach addresses organizational challenges but increases complexity.
Get the Snipd Podcast app to discover more snips from this episode
Get the app