String To Number with Matt Pocock - TypeScript Type Challenges #300 [HARD]

preview_player
Показать описание
As of TypeScript 4.8 this has a super trivial one-line solution, but before that it was quite intense. The solutions on this video are more like an archaeological dig than anything else.

00:00 description of the challenge
00:41 attempt at a solution
01:55 all tests pass
03:34 alternatives

Рекомендации по теме
Комментарии
Автор

Matt Pocock is an educator, content creator and engineer. He used to be a voice coach, then he worked at Vercel - now he teaches TypeScript full-time! Matt's made a big impact with Total TypeScript, a comprehensive production-grade TypeScript training course. He somehow still finds time to make fantastic TypeScript npm packages like ts-reset, untypeable, and shoehorn.

MichiganTypeScript
Автор

In all of these challenges, it kind of seems like what you're doing is telling the compiler how to interpret your code as it goes through each phase. It kind of reminds me of metaprogramming that various languages have, like you could just about make your own programming language out of it. I'm still not sure if I like TypeScript or not, but it has some weird nested ideas.

anon_y_mousse