Migrate javascript react project to typescript

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024

ความคิดเห็น • 7

  • @gui-wd1gg
    @gui-wd1gg 2 ปีที่แล้ว +2

    thank you for your video, it was really difficult to figure it out by myself how to migrate from vite jsx to vite tsx!

  • @james2396
    @james2396 2 ปีที่แล้ว +1

    Thanks for the video, I really appreciate the timestamps too ❤

  • @AmodeusR
    @AmodeusR ปีที่แล้ว +1

    I wouldn't say coding in typescript is faster. Its advantage is not speed (that's javascript advantage over typescript), since you need to type everything and very often you come across really annoying type errors, but being able to catch errors before production phase avoiding cumbersome bugs whilst being very scalable.

    • @nathankrasney
      @nathankrasney  ปีที่แล้ว

      Overall with typescript you have less bugs so overall the development is faster. And with less bugs you spend less time on maintenance.

  • @losrobbosful
    @losrobbosful ปีที่แล้ว

    I agree with Amodeus, JS is about speed. TS about stability / predictability.
    But you could argue, that for experienced TS developers the debugging time in complex projects is way less compared to JS. In complex JS projects it is much more likely to get into a mess and in the long run spend way more time on the project

    • @nathankrasney
      @nathankrasney  ปีที่แล้ว +1

      TS does not run on the browser or server, it is js that runs so on runtime ts speed is the same as js. ts by far reduce bugs and complexity thus saving you time on development and especially on maintenance.

    • @losrobbosful
      @losrobbosful ปีที่แล้ว +1

      @@nathankrasney Agreed, the runtime speed is the same. The discussion is just about the development speed. And here I basically - in the long - agree with your point.
      You are definitely not faster with TS once your starting with it. Also for mini projects, e.g. portfolio projecs, I generally prefer JS, because TS will serve me almost no benefit here and slow me down.
      But I absolutely agree with you that for real PROJECT work, not just a Pet Project, it definitely speeds up development in the long run.