3 ms·
Learning Typescript was probably one of the best investments of time I have ever made. It took like 3 hours to learn all together and saved me at least 20 hours
by peanut_worm 5y ago
Learning Typescript was probably one of the best investments of time I have ever made. It took like 3 hours to learn all together and saved me at least 20 hours of debugging already.
- azangru 5y ago> It took like 3 hours to learn all together Me, raising an incredulous eyebrow.
- peanut_worm 5y agoSorry, not to learn entirely but to learn more than enough to benefit from it greatly.
- schwartzworld 5y agoThey already knew JS.
- azangru 5y agoStill. Generics. `extends` with ternaries. `infer` within conditional types. Type narrowing. Lots of the language quirks.
- pietrovismara 5y agoThis is correct. I feel there are 2 distinct levels of knowledge with Typescript: the application level and the library level. The application level is fairly easy, but if you want to write libraries with good types you're going to have to dive in the more complex features of Typescript. Still not rocket science, but it takes way more than 3 hours, even if one studies it intensively.
- afavour 5y agoIt’s probably better to say 3 hours to learn enough to start coding a project. If you already know JS I really think you could learn 80% of TypeScript in three hours. But the last 20% would take a long time: generics, union types, that sort of stuff.
- hunterb123 5y agoYeah it's pretty intuitive, just type things with :<type> where the any's are inferred (squiggles). The harder parts are the advanced types which you can learn middle out as you go.
- lytedev 5y agoAnd if you're already familiar with such things, I could definitely see picking it up rather quickly.
- Scarbutt 5y agoNot if you already know JS and something like Ocaml or Haskell