Blog Posts with Tag Typescript

Building APIs: Generating API Clients with OpenAPI Generator

APIs are everywhere! APIs are one of the basic building blocks of modern software architectures. With the proliferation of HTTP based APIs, facilitating API consumption with minimal effort becomes crucial. The bridge between programming languages and APIs is to use a programmatic API specification that defines the contracts of the API. From there, utilizing tools to read that specification to generate an API client. When utilizing a single language, it's sometimes possible to…

August 30, 2021
|
approximately 5 minutes to read
Typescript Tips: null(and undefined) Checking

Null is often described as the million dollar problem or billion dollar mistake. There are so many times when a null check is needed in code that it can be easy to forget them. Javascript compounds this with the additional special case of undefined. With Typescript, strong typing helps catch these errors. However, in Typescript that safety comes with the added complexity of having to do null checks a lot. Thankfully, in Typescript, there are several shorthand ways to deal…

July 20, 2021
|
approximately 2 minutes to read
Typescript Tips: Destructuring Assignments

Typescript has become my favorite language to use during web development. Most of all, I love the type safety. However, there are so many features to the language it's easy for little useful tidbits to get forgotten about. I'm going to be writing some brief posts on some little features that have really been helpful during web development. The first of these is destructuring assignments. Destructuring Arrays For example: While this is a trivial example, the opritunity here is…

July 09, 2021
|
approximately 1 minutes to read
© 2024 - Built and designed by Jeremy Honl with Gatsby. Images are from Unsplash