Friday

Track 6

15:00 - 16:00 (UTC±00)

Talk (60 min)

The Art and Craft of Type Development

Here's a secret: JavaScript developers love TypeScript. In fact, they love it so much, that more way than half of NPM's users say that they wouldn't want to work without it. But how can a type-system grasp all the powerful flexibility of a programming language so inherently dynamic, without restricting JavaScript's expressiveness a single bit? Let's find it out by looking at some real-world examples you find in everyday JavaScript. We make them typesafe step by step, following a robust, tried, and trusted process. Join us and learn about: - Generic binding and literal types - Conditional types and conditional inference - Recursive type patterns - String literal types - Variadic tuple types - Low maintenance types By the end of this session, you will be able to create types that last long and require little maintenance, no matter how your code changes.

Languages
JavaScript
Functional Programming

Stefan Baumgartner

Stefan Baumgartner is an architect and developer based in Austria. He is the author of "TypeScript in 50 Lessons" and writes for Manning, Smashing Magazine, and A List Apart.

In his spare time, he organizes ScriptConf and DevOne in Linz and co-hosts the German language Working Draft podcast. Stefan enjoys Italian food, Belgian beer, and British vinyl records.