Syntax - Tasty Web Development Treats

Supper Club × tRPC With Alex KATT Johansson

Oct 21, 2022
In this engaging discussion, Alex Johansson, a software engineer at Tola and the creator of tRPC, shares insights on tRPC as a modern alternative to REST and GraphQL. He highlights its benefits like automatic batching and type safety, emphasizing Zod for robust input validation. The conversation also covers data management strategies, the performance challenges of TypeScript, and personal tech preferences. Johansson’s anecdotes add humor, making complex topics accessible while illustrating the evolving landscape of web development.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

tRPC: A Function-Focused Approach

  • tRPC offers an alternative to REST or GraphQL by focusing on functions instead of endpoints.
  • It infers the API specification using TypeScript, simplifying backend development.
INSIGHT

Type Safety in tRPC

  • tRPC leverages TypeScript's type system to provide end-to-end type safety.
  • This eliminates the need for separate schema definitions and code generation steps.
INSIGHT

tRPC vs. GraphQL

  • tRPC prioritizes simplicity and speed for smaller teams, while GraphQL excels in complex, large-scale applications.
  • tRPC simplifies development by removing API contract discussions and reducing overhead.
Get the Snipd Podcast app to discover more snips from this episode
Get the app