End-to-End TypeScript: Completing the Modern Development Stack
What if your types could flow seamlessly from your database all the way to your UI? Discover the modern TypeScript toolkit for building truly end-to-end type-safe applications.
#1about 2 minutes
Understanding the power and popularity of TypeScript
TypeScript's strong typing improves code readability, maintainability, and developer velocity by catching errors early.
#2about 2 minutes
Acknowledging the challenges of writing complex types
While powerful, creating and maintaining correct types can be complex, especially for library authors, as highlighted by DHH's experience.
#3about 4 minutes
Leveraging the TypeScript compiler and modern runtimes
The TypeScript ecosystem includes the TSC compiler, tsconfig for strictness, and modern runtimes like Deno and Bun that offer native support.
#4about 5 minutes
Achieving type safety in the database layer
ORMs like Prisma and Drizzle allow developers to define database schemas and infer types directly in TypeScript for end-to-end consistency.
#5about 4 minutes
Building type-safe backends and APIs
Libraries like Hono for routing, Zod for validation, and TRPC for communication enable the creation of robust, type-safe backend services.
#6about 2 minutes
Connecting the frontend with type-safe APIs
Type-safe communication between the frontend and backend can be achieved using patterns like TRPC, GraphQL, or code generation from OpenAPI specs.
#7about 4 minutes
Using code generation to ensure type consistency
Code generation tools help maintain type consistency across layers but require careful management of trade-offs like monorepo complexity and tool understanding.
#8about 1 minute
Designing abstractions to prevent vendor lock-in
Employing patterns like hexagonal architecture and domain-driven design helps isolate core business logic from specific frameworks and avoid vendor lock-in.
#9about 3 minutes
Integrating decentralized tech and AI into your stack
Modern stacks extend beyond three tiers to include external data sources like LLMs via the OpenAI SDK and decentralized technologies like blockchain smart contracts.
#10about 2 minutes
A practical example of an end-to-end workflow
A complete type-safe workflow can be built by combining Drizzle for the database, Zod for schemas, Hono for the API, and React for the frontend.
#11about 1 minute
Final takeaways for building modern TypeScript applications
Embrace types with strict mode, automate wherever possible, build your own abstractions for core logic, and think beyond the traditional three-tier architecture.
Related jobs
Jobs that call for the skills explored in this talk.
Matching moments
02:37 MIN
Understanding TypeScript's origins and role in scalability
All you need is types
08:13 MIN
Building end-to-end type-safe full-stack applications
Don't compromise on speedy delivery nor type-safety by choosing TypeScript
03:57 MIN
Why JavaScript and TypeScript dominate modern development
Modern Headless Commerce with Vendure
02:27 MIN
Simplifying development with Python and TypeScript
How to Build for Decentralized Systems
03:47 MIN
Why TypeScript is essential for building large applications
Building a large, complex product from the ground up with typescript & Atomic Design:lessons learned
01:48 MIN
Summary of using types for scalable codebases
All you need is types
02:08 MIN
Q&A on TypeScript, clean code, and algorithms
Things I learned while writing high-performance JavaScript applications
All the videos of Halfstack London 2024!Last month was Halfstack London, a conference about the web, JavaScript and half a dozen other things. We were there to deliver a talk, but also to record all the sessions and we're happy to share them with you. It took a bit as we had to wait for th...
Thomas Limbüchler
What is TypeScript?Since Angular 2 at the latest, TypeScript has been known to many. But what exactly can you do with it, and is it worth changing?Anyone who has worked with programming languages such as Java or C# before will have noticed that JavaScript allows a su...
How we Build The Software of TomorrowWelcome to this issue of the WeAreDevelopers Live Talk series. This article recaps an interesting talk by Thomas Dohmke who introduced us to the future of AI – coding.This is how Thomas describes himself:I am the CEO of GitHub and drive the company’s...
From learning to earning
Jobs that call for the skills explored in this talk.