Types and static analysis saved me today

Today I was writing Pulumi code in Typescript, and I although I have autocompletion, I mistyped the name of a property.

But, because of the types that I'd declared and how I have Neovim configured, the error was immediately shown, and I was able to fix the typo and what would have been a compilation error if I'd tried to run it.

It only took a second or two for me to make and fix the mistake.

I didn't need to run the code or commit it and push it to a CI pipeline to find out that there was a bug.

I found out and fixed it immediately, and moved on as if I hadn't written the typo at all. This is why I like types and static analysis.

- Oliver

P.S. Need help or want another pair of eyes on your code? Book a 1-on-1 consulting call or an online pair programming session with a 100% money-back guarantee.,

Was this useful?

Sign up here and get more like this delivered straight to your inbox every day.

About me

Picture of Oliver

I'm an Acquia-certified Drupal Triple Expert with 17 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.