From 92266f1d7c70119bd7b276c4a47939152d27ebe0 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 4 Jan 2023 23:04:17 +0000 Subject: [PATCH] docs(daily-email): add 2023-01-01 --- website/src/daily-emails/2023-01-01.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 website/src/daily-emails/2023-01-01.md diff --git a/website/src/daily-emails/2023-01-01.md b/website/src/daily-emails/2023-01-01.md new file mode 100644 index 000000000..2d12a8dfc --- /dev/null +++ b/website/src/daily-emails/2023-01-01.md @@ -0,0 +1,20 @@ +--- +title: > + Types and static analysis saved me today +pubDate: 2023-01-01 +permalink: > + archive/2023/01/01/types-and-static-analysis-saved-me-today +tags: + - static-analysis + - types +--- + +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.