Syntax - Tasty Web Development Treats

675: Potluck × Bun Thoughts × Guesting on Syntax × Why Rust?

Oct 4, 2023
This discussion dives into the launch of Bun 1.0, a JavaScript runtime that's shaking things up with its speed and integrations. They break down the intricacies of API development, comparing REST, GraphQL, and trpc, helping you decide which fits your team best. Documentation strategies shine as they share tips on making complex code easier to understand. The conversation also touches on why learning Rust is worth it, challenging traditional programming norms. Plus, some fun hardware customization ideas make their way into the mix!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Bun vs Node

  • Bun.js offers a compelling alternative to Node.js, boasting potential performance gains and resolving the CJS/ESM interop dilemma.
  • However, Node.js remains a stable, reliable choice, and Bun's long-term viability requires further evaluation.
ADVICE

Custom Auth Headers for Images

  • Use service workers to intercept image requests and add custom auth headers, offering a solid approach without cookies.
  • Consider Cloudflare Workers or edge workers as server-side alternatives for header manipulation if you have server access.
INSIGHT

TRPC vs REST vs GraphQL

  • TRPC, REST, and GraphQL offer distinct approaches to data fetching, each with trade-offs in type safety, developer experience, and ecosystem maturity.
  • REST remains the simplest and most widely adopted, while GraphQL excels in flexibility and large-scale applications, and TRPC provides a balanced middle ground.
Get the Snipd Podcast app to discover more snips from this episode
Get the app