Dan Vanderkam 🦋 (@danvdk) 's Twitter Profile
Dan Vanderkam 🦋

@danvdk

Independent software developer, formerly @sidewalklabs and Google. Author of Effective TypeScript, now in its 2nd edition (May 2024): amzn.to/3UjPrsK

ID: 21046936

linkhttps://effectivetypescript.com calendar_today17-02-2009 00:18:46

1,1K Tweet

3,3K Followers

122 Following

Dan Vanderkam 🦋 (@danvdk) 's Twitter Profile Photo

Excited to see that the new Flow Node Charts have at least one high-profile user. And may have even indirectly led to some TypeScript speedups! Visualizing something has a way of nudging you to make it better. David Sherret github.com/microsoft/Type…

Dan Vanderkam 🦋 (@danvdk) 's Twitter Profile Photo

One of my goals this year was to become a TypeScript contributor. Over the past three months, I did just that! This post tells the story of how Type Predicate Inference came about and what I learned along the way. effectivetypescript.com/2024/04/16/inf…

Dan Vanderkam 🦋 (@danvdk) 's Twitter Profile Photo

This has been on my list of most-desired TS features for years. I’m genuinely curious to see what breaks under —strictReadonly. In 2016 this felt too strict, but in 2024 it’s surprising we don’t have this.

John Reilly ❤️🌻 (@johnny_reilly) 's Twitter Profile Photo

I'm always excited by a TypeScript release. This one is epic, and what's all the notable is how much community involvement there was in it. I loved seeing the shout outs to Titian Cernicova-Dragomir 💙💛, Dan Vanderkam 🦋 and others in the release post. Recognition is so important and so appreciated ❤️

Josh Goldberg 🦋 (@joshuakgoldberg) 's Twitter Profile Photo

This is the thing! We're launching! I'M CO-ORGANIZING A CONFERENCE THIS YEAR!!!! SO MUCH WORK has gone into it and I'm SO HYPED TO GET IT PUBLIC!! 🤩🥳🤩🥳🤩🥳

Dan Vanderkam 🦋 (@danvdk) 's Twitter Profile Photo

If you want to learn the backstory of TypeScript 5.5's inferred type predicates, this is the video! I'm really happy with how it turned out. Kudos to Dimitri and Josh Goldberg 🦋 for putting it together.

Josh Goldberg 🦋 (@joshuakgoldberg) 's Twitter Profile Photo

TypeScript 5.5's going to be a BANGER, and the headliner feature for a lot of us that I'm SO EXCITED about is because Dan Vanderkam 🦋 wanted to be awesome. Congrats and thank you Dan for inferred type predicates! It was an honor just to cheer it on. 😄

Dan Vanderkam 🦋 (@danvdk) 's Twitter Profile Photo

Effective TypeScript Item 36: Use a Distinct Type for Special Values. This is a sample from the newly-released second edition. It discusses a common mistake in TypeScript code: using "", 0, or -1 to represent special cases like missing data. effectivetypescript.com/2024/06/13/spe…

Dan Vanderkam 🦋 (@danvdk) 's Twitter Profile Photo

I learned Zig for last year's Advent of Code. It's a nice language with some great ideas, and TypeScript could learn a few things from it. Read on! effectivetypescript.com/2024/07/17/adv…

Dan Vanderkam 🦋 (@danvdk) 's Twitter Profile Photo

This is the single passage of Effective TypeScript that I've received the most feedback on. Do you have an intuition for why these relationships hold? The latest blog post walks through how they work, what they mean, and why they're interesting effectivetypescript.com/2024/08/30/key…

This is the single passage of Effective TypeScript that I've received the most feedback on. Do you have an intuition for why these relationships hold? The latest blog post walks through how they work, what they mean, and why they're interesting effectivetypescript.com/2024/08/30/key…
Dan Vanderkam 🦋 (@danvdk) 's Twitter Profile Photo

For a weekend project, I wrote a VS Code extension: X-Ray Vision for any types. The scary thing about "any" is that it can appear in surprising place and silently spread. No more! This was frustrating, rewarding, and hopefully useful. Give it a try! marketplace.visualstudio.com/items?itemName…

For a weekend project, I wrote a VS Code extension: X-Ray Vision for any types. The scary thing about "any" is that it can appear in surprising place and silently spread. No more! This was frustrating, rewarding, and hopefully useful. Give it a try! marketplace.visualstudio.com/items?itemName…
Dan Vanderkam 🦋 (@danvdk) 's Twitter Profile Photo

Just published a big update to my "X-Ray Glasses for any types" VS Code extension: marketplace.visualstudio.com/items?itemName… It uses the built-in TypeScript server now, which makes it faster and more likely to work with your project. Give it a try! It found some anys in vscode and tsc itself!

Just published a big update to my "X-Ray Glasses for any types" VS Code extension: marketplace.visualstudio.com/items?itemName…

It uses the built-in TypeScript server now, which makes it faster and more likely to work with your project. Give it a try! It found some anys in vscode and tsc itself!
Nadim (@0xnadim1) 's Twitter Profile Photo

writing typescript for the first time in 6 years, and i think im enjoying it? new additions like type predicates inference make for a much nicer devex found a very cool article too documenting the development process of this feature from Dan Vanderkam 🦋 effectivetypescript.com/2024/04/16/inf…

Dan Vanderkam 🦋 (@danvdk) 's Twitter Profile Photo

Great article from Oliver Roeder about my long-running quest to find the highest-scoring Boggle board. I love the visuals! ft.com/content/0ab64c…