正在加载视频...

视频加载失败

Branded types have saved my ass so many times

18,399 次观看 • 1 年前 •via X (Twitter)

7 条评论

Aaron Delasy 的头像
Aaron Delasy1 年前

that’s great when you have time to create those. with the recent hype around vibe coding, you either ship a new SaaS or create branded types - that's the pace nowadays

Rainmaker 的头像
Rainmaker2 年前

Curious about the best strategy for volatile markets? Dive into my free Substack post where I use a Hidden Markov Model (HMM) to sidestep market turbulence and protect the portfolio.

Kevin Østerkilde 🇩🇰 的头像
Kevin Østerkilde 🇩🇰1 年前

I use branded types for IDs in a project at work, it's been great. Saved our ass a few times where using plain "string" types wouldn't have caught misuses.

Aamir Jawaid 的头像
Aamir Jawaid1 年前

Tried introducing this to my workplace. It felt very reminiscent of the JavaScript vs typescript debate. “Too much overhead”, “does it really save time”, “is it worth the effort” etc

fakedeep femi 的头像
fakedeep femi1 年前

this works really well if you combine it with Zod’s brand method, and create a function that can convert a primitive input to its branded version

Evi 的头像
Evi1 年前

This is the most unclear video you ever made… and you’re the one who explained the string or literal typing. Just saying

Matt Pocock 的头像
Matt Pocock1 年前

What felt unclear?

相关视频