Generating types without climbing a tree - Matteo Collina, TypeScript Congress 2023

Automate API development with CodeBlock Writer, a library that generates types without type coupling and dependencies, from Matteo Collina at TypeScript Congress 2023.

Key takeaways
  • The current state of API development is tedious, as developers need to manually create clients and maintain tight coupling between front-end and back-end code.
  • Matteo Collina, the speaker, wanted to automate the process of generating types without climbing the tree of complexity.
  • He started his journey by trying to generate clients using OpenAPI and TypeScript.
  • The speaker discussed the limitations of existing libraries, such as TRPC and TSREST, which introduce type coupling and have complex dependencies.
  • He introduced CodeBlock Writer, a library that allows generating types without type coupling and dependencies.
  • The speaker shared his experience using CodeBlock Writer to generate a client for his API and showed how it simplified the development process.
  • He emphasized the importance of generating code that is easy to read and understand, and highlighted the benefits of using OpenAPI to define APIs.
  • The speaker encouraged developers to use CodeBlock Writer and other libraries to simplify API development and improve the developer experience.
  • He also discussed the need for better documentation and code generation tools to make API development easier and more efficient.
  • The speaker emphasized the importance of laziness in coding, as it allows developers to focus on high-level abstractions and avoid low-level details.
  • He concluded that CodeBlock Writer is a good solution for generating types without climbing the tree of complexity.