{"embed":false,"podcast":"Full Stack Radio","podcast_slug":"Full-Stack-Radio","tags":[],"thumbnail_url":"https://images.transistor.fm/file/transistor/images/show/13470/full_1597943814-artwork.jpg","episode":"144: Gary Bernhardt - TypeScript and Testing","episode_slug":"Full-Stack-Radio-144-Gary-Bernhardt-TypeScript-and-Testing","description":"Topics include:\nWhy Gary decided to write Execute Program as a full-stack TypeScript application instead of using a Ruby or Python backend like he may have traditionally\nDo you actually have to write less tests if you have a good type system?\nWhat does a good type system give you that tests can't give you?\nUsing io-ts to type check incoming data\nHow to think about structuring your code to best take advantage of the benefits your type system gives you and minimize the need to write tests\nPushing conditional logic to the core of your system to reduce the number of tests you need to write at the edges\nThe correlation between type errors and behavioral bugs, and how a type system can help you catch mistakes you don't think to test for\nDo type errors signal that you're missing a test?\nStructural vs. nominal type systems, and the benefits of structural type systems like used by TypeScript and Go\nBest practices for type-checking within a function in a structural type system like TypeScript\nThe power of supporting literal types like true or \"active\" in addition to traditional types\nLinks:\nDestroy All Software\nExecute Program\nTypeScript\n\"Are tests necessary in TypeScript?\"\nio-ts\n\nTypeScript course on Execute Program\nGary's tweet about unions with literal types\nSupporting the show:I decided to stop taking sponsors for the show because I think advertisements are annoying and no one wants to listen to them.If you do want to support the show, the best way to do it is to purchase one of my products:\n\nTailwind UI, a collection of professionally designed, fully responsive HTML components built with Tailwind CSS.\n\nRefactoring UI, a book and video series I put together with Steve Schoger on designing beautiful user interfaces, without relying on a designer.\n\nAdvanced Vue Component Design, a course on designing simpler, more flexible Vue components that are both more powerful and easier to maintain.\n\nTest-Driven Laravel, a massive video course on designing robust Laravel applications with TDD. Learn how to build a real-world application from scratch without writing a single line of untested code.\n\nRefactoring to Collections, a book and video course that teaches you how to apply functional programming principles to break down ugly, complex code into simple transformations — free of loops, complex conditionals, and temporary variables.\n","release_date":"5 Aug 2020","episode_embed_code":"<iframe src=\"https://api.pastimeapp.com/embed/Full-Stack-Radio-144-Gary-Bernhardt-TypeScript-and-Testing\" height=\"170px\" width=\"100%\" style=\"width: 1px; min-width: 100%; border: 1px dashed rgba(0,0,0,0.1); border-radius: 10px\" frameborder=\"0\" scrolling=\"no\" loading=\"lazy\"></iframe>","episode_share_url":"https://api.pastimeapp.com/ep/Full-Stack-Radio-144-Gary-Bernhardt-TypeScript-and-Testing","podcast_share_url":"https://api.pastimeapp.com/pod/Full-Stack-Radio","audio_url":"https://media.transistor.fm/b0476696/13135089.mp3","ads":[],"meta":{"title":"Full Stack Radio: 144: Gary Bernhardt - TypeScript and Testing","description":"From Full Stack Radio. Topics include:\nWhy Gary decided to write Execute Program as a full-stack TypeScript application instead of using a Ruby or Python backend like he may have traditionally\nDo you actually have to write less tests if you have a good type system?\nWhat does a good type system give you that tests can't give you?\nUsing io-ts to type check incoming data\nHow to think about structuring your code to best take advantage of the benefits your type system gives you and minimize the need to write tests\nPushing conditional logic to the core of your system to reduce the number of tests you need to write at the edges\nThe correlation between type errors and behavioral bugs, and how a type system can help you catch mistakes you don't think to test for\nDo type errors signal that you're missing a test?\nStructural vs. nominal type systems, and the benefits of structural type systems like used by TypeScript and Go\nBest practices for type-checking within a function in a structural type system like TypeScript\nThe power of supporting literal types like true or \"active\" in addition to traditional types\nLinks:\nDestroy All Software\nExecute Program\nTypeScript\n\"Are tests necessary in TypeScript?\"\nio-ts\n\nTypeScript course on Execute Program\nGary's tweet about unions with literal types\nSupporting the show:I decided to stop taking sponsors for the show because I think advertisements are annoying and no one wants to listen to them.If you do want to support the show, the best way to do it is to purchase one of my products:\n\nTailwind UI, a collection of professionally designed, fully responsive HTML components built with Tailwind CSS.\n\nRefactoring UI, a book and video series I put together with Steve Schoger on designing beautiful user interfaces, without relying on a designer.\n\nAdvanced Vue Component Design, a course on designing simpler, more flexible Vue components that are both more powerful and easier to maintain.\n\nTest-Driven Laravel, a massive video course on designing robust Laravel applications with TDD. Learn how to build a real-world application from scratch without writing a single line of untested code.\n\nRefactoring to Collections, a book and video course that teaches you how to apply functional programming principles to break down ugly, complex code into simple transformations — free of loops, complex conditionals, and temporary variables.\n","image":"https://images.transistor.fm/file/transistor/images/show/13470/full_1597943814-artwork.jpg","twitter":{"card_type":"summary"}},"episode_data":{"id":645842833,"guid":"ab8d0885-2e2c-494e-b8db-3f189e74c201","slug":"Full-Stack-Radio-144-Gary-Bernhardt-TypeScript-and-Testing","title":"144: Gary Bernhardt - TypeScript and Testing","alias":null,"description":"Topics include:\nWhy Gary decided to write Execute Program as a full-stack TypeScript application instead of using a Ruby or Python backend like he may have traditionally\nDo you actually have to write less tests if you have a good type system?\nWhat does a good type system give you that tests can't give you?\nUsing io-ts to type check incoming data\nHow to think about structuring your code to best take advantage of the benefits your type system gives you and minimize the need to write tests\nPushing conditional logic to the core of your system to reduce the number of tests you need to write at the edges\nThe correlation between type errors and behavioral bugs, and how a type system can help you catch mistakes you don't think to test for\nDo type errors signal that you're missing a test?\nStructural vs. nominal type systems, and the benefits of structural type systems like used by TypeScript and Go\nBest practices for type-checking within a function in a structural type system like TypeScript\nThe power of supporting literal types like true or \"active\" in addition to traditional types\nLinks:\nDestroy All Software\nExecute Program\nTypeScript\n\"Are tests necessary in TypeScript?\"\nio-ts\n\nTypeScript course on Execute Program\nGary's tweet about unions with literal types\nSupporting the show:I decided to stop taking sponsors for the show because I think advertisements are annoying and no one wants to listen to them.If you do want to support the show, the best way to do it is to purchase one of my products:\n\nTailwind UI, a collection of professionally designed, fully responsive HTML components built with Tailwind CSS.\n\nRefactoring UI, a book and video series I put together with Steve Schoger on designing beautiful user interfaces, without relying on a designer.\n\nAdvanced Vue Component Design, a course on designing simpler, more flexible Vue components that are both more powerful and easier to maintain.\n\nTest-Driven Laravel, a massive video course on designing robust Laravel applications with TDD. Learn how to build a real-world application from scratch without writing a single line of untested code.\n\nRefactoring to Collections, a book and video course that teaches you how to apply functional programming principles to break down ugly, complex code into simple transformations — free of loops, complex conditionals, and temporary variables.\n","transcript":null,"deepgram":null,"categories":"[\"Technology\"]","duration":5098,"episode_number":null,"season":null,"episode_type":null,"release_date":"2020-08-05T15:27:38.000Z","audio_url":"https://media.transistor.fm/b0476696/13135089.mp3","image_url":null,"player_url":"/ep/Full-Stack-Radio-144-Gary-Bernhardt-TypeScript-and-Testing","valid":true,"accessTier":null,"created":null,"updated":"2023-08-15T08:59:26.213Z","podcastId":394,"podcast":{"id":394,"slug":"Full-Stack-Radio","name":"Full Stack Radio","alias":null,"network":null,"author":"Adam Wathan","rss_url":"https://simplecast.com/podcasts/279/rss","description":"A podcast for developers interested in building great software products. Every episode, Adam Wathan is joined by a guest to talk about everything from product design and user experience to unit testing and system administration.","categories":"[\"Technology\"]","itunes_type":null,"itunesTypeSource":null,"image_url":"https://images.transistor.fm/file/transistor/images/show/13470/full_1597943814-artwork.jpg","thumbnail_url":"https://images.transistor.fm/file/transistor/images/show/13470/full_1597943814-artwork.jpg","error":true,"errorSince":null,"errorReason":null,"feedChangedAt":null,"tagsEditedAt":null,"hiddenAt":null,"hiddenReason":null,"endedAt":null,"popularity":0,"language":null,"country":null,"countrySource":null,"created":"2016-09-14T09:23:52.106Z","updated":"2026-07-02T23:02:48.634Z","tags":[]},"captions":[]},"podcast_data":{"id":394,"slug":"Full-Stack-Radio","name":"Full Stack Radio","alias":null,"network":null,"author":"Adam Wathan","rss_url":"https://simplecast.com/podcasts/279/rss","description":"A podcast for developers interested in building great software products. Every episode, Adam Wathan is joined by a guest to talk about everything from product design and user experience to unit testing and system administration.","categories":"[\"Technology\"]","itunes_type":null,"itunesTypeSource":null,"image_url":"https://images.transistor.fm/file/transistor/images/show/13470/full_1597943814-artwork.jpg","thumbnail_url":"https://images.transistor.fm/file/transistor/images/show/13470/full_1597943814-artwork.jpg","error":true,"errorSince":null,"errorReason":null,"feedChangedAt":null,"tagsEditedAt":null,"hiddenAt":null,"hiddenReason":null,"endedAt":null,"popularity":0,"language":null,"country":null,"countrySource":null,"created":"2016-09-14T09:23:52.106Z","updated":"2026-07-02T23:02:48.634Z","tags":[]}}