Where we're going we don't need JavaScript - Programming with Type Annotations
Peter Kröner - 3 years ago
TypeScript's type annotations are more than just an addition to JavaScript - they are in fact a programming language in their own right! Types are essentially variables, generics work like function arguments and TypeScript's type annotations as a whole are a fully-features, functional DSL, embedded in JavaScript. And it's worth learning how to use this secret language! If we apply a programming mindset to types, we can unlock hidden superpowers that most TS users know very little about, but that have the potential to change how you think about types. This talk guides you through the implementation of a fairly basic message bus that we supercharge with type-level programming. Learn how mapped types, discriminated unions, conditional types and other advanced features to make the message bus type safe, simple to maintain and easy to use. By treating type annotations as a programming language, this talk opens up a new perspective on thinking in types for everyday TypeScript development.
Jobs with related skills

PHP-Developer Banking (m/w/d)
Sopra Steria Custom Software Solutions GmbH
·
today
Hamburg, Germany
Hybrid

Fullstack Engineer - Go & Vue - Cloud Native (m/w/d)
Schwarz IT KG
·
4 days ago
Raum Weinsberg GVV, Germany
Hybrid

Senior Web Developer bei Cyberport
Hubert Burda Media
·
6 days ago

AI Software Engineer (m/f/d)
Sunhat
·
11 days ago
Berlin, Germany
+1
Hybrid
Related Videos