Vue and Typescript | When to use it

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • This is an excerpt from our full course on Vue and Typescript, available at 👉 www.vuemastery.com/courses.
    Ready to master Vue.js?
    With weekly Vue js tutorials on the latest topics, and exclusive content with Evan You (the creator of Vue), Vue Mastery is the ultimate learning resource for Vue developers to level-up their skills. Watch more free Vuejs tutorials 👉 buff.ly/3i5X58o
    Get in touch 👉 team@vuemastery.com
    Lesson Markers:
    0:00 Overview
    0:24 Defining TypeScript
    1:56 The Cost of Using TypeScript
    3:14 TypeScript is not as scary as you think...
    4:44 Is Typescript worth it?
    6:47 What about TypeScript support in Vue?
    7:39 TypeScript can be added incrementally
    8:19 Review
  • НаукаНаука

Комментарии • 41

  • @ivanschekoldin7315
    @ivanschekoldin7315 2 года назад +16

    Typescript is a blessing anywhere you can use it. It turns chaos of js into something decent

  • @patrickkhwela8824
    @patrickkhwela8824 2 года назад +7

    I've always hated JavaScript until I ran into Typescript. I really don't like writing code without it.

  • @theanswer1993
    @theanswer1993 Год назад +5

    Angular did it way back but people for some reason hated it just cause they are lazy and don't want to learn something new. After using Typescript I am never going back to just vanilla JS.

  • @laravelearner
    @laravelearner 10 месяцев назад +1

    Thank you very much for such a good video.

  • @AstroSardaukar
    @AstroSardaukar Год назад +3

    You forgot one very important consideration - the number of employers requiring it.

  • @timo_b3
    @timo_b3 5 месяцев назад

    thank you

  • @dragon3602010
    @dragon3602010 2 года назад +4

    Do you advise to use typescript or Vue 3 with nuxtjs?

  • @FADHsquared
    @FADHsquared 2 года назад +1

    Every time?

  • @gmkhussain
    @gmkhussain 2 года назад

    I love the guest hosts, but I was surprised and delighted to hear *TypeScript* himself!!!! 💖💐

  • @thomaspotterdotexe
    @thomaspotterdotexe 2 года назад +5

    I don't like working on vue project with typescript, it causes a lot of issues and compatibility and need alot of times

    • @theanswer1993
      @theanswer1993 Год назад +4

      Issues as in telling you that your garbage code has issues cause you're comparing types that shouldn't be compared

    • @thomaspotterdotexe
      @thomaspotterdotexe Год назад +5

      @@theanswer1993 this is just my preference, but yeah I'm not real and good developer, I'm writing a bad shit code full of garbage, thanks for reminding me

  • @jyy8301
    @jyy8301 2 года назад +6

    Good video! I would rather have everything in Js and slowly transfer them to Ts to fix an actual development issues.

  • @SXsoft99
    @SXsoft99 Год назад

    sometimes i wondow how people name their methods, i mean for example a methos that does numeric procesing inside, and a developer looks at that method before using it, why does he need hes hand to be held an exception pop up when he passes a string value to it, i just don't get it
    then again i learned very early in my career to "dont skip on letters when naming stuff" meaning be it variable or method, obj i use even 10 camel case words if i have to
    Note that I come from PHP and in recent years i have been adding types to my props and arguments but still i was never like "if this method expects a number, well i am just going to give it an object and type check it with ifs inside"

  • @henrikolsen5
    @henrikolsen5 8 месяцев назад

    Let's ReVue :)

  • @tavcode
    @tavcode 2 года назад

    tansk !

  • @lserranoit
    @lserranoit 2 года назад +7

    its scares that JS its the first p langague for tons of ppl

  • @alpham8754
    @alpham8754 2 года назад +5

    Great video, but the main reasons for TypeScript were missing there: With static typing it helps to avoid a lot of mistakes that otherwise accidentaly could be done. Also, TypeScript is the Microsoft's try of a half-step to fix JavaScript. In overall, JavaScript can't be fixed, because it's an old language and historically made ugly and failable etc. and ECMAScript consortium does the rest to keep it ugly as well.

  • @oogabooga2581
    @oogabooga2581 2 года назад +7

    I don't feel like Typescript by its structure self-documents, even when introduced to new developers, I just don't see the type error mania being an actual issue. As opposed to logic error, where unit tests actually document the code from start to finish with proper TDD. But like all the other JavaScript transpilers before it, and with JavaScript constantly evolving, Typescript will be left in the dirt.

    • @brokula1312
      @brokula1312 2 года назад +8

      You see benefits in TDD but not in type system?
      Types are the first level of testing. It tests whether your data is what you have defined that it should be throughout the whole application.
      interface User { id: number, email: string }
      Done! We have a contract. I'm calm and happy, IDE is happy and can now give meaningful suggestions and more and safer refactoring options.
      I would not touch large project without TS. Heck, I can even live without unit tests since FE is very dynamic place and test fail all the time.

    • @xicheung7867
      @xicheung7867 2 года назад

      @@brokula1312 agreed 🙌. I colloquially describe TS as "the younger sibling" of unit tests. If unit tests can't be done, the next best thing IMO is TS. Probably the REALLY best thing is a combo of both 😁

    • @pro-cr2eo
      @pro-cr2eo 2 года назад +1

      It's not about only documentation my boi , it's also developer experience. on top of that, you get extra features that js doesn't have like Enums and tdd is very dynamic cause many people write tests that checks implementation details of app instead of how user use it. It's 2021, come on go use Typescript

    • @FADHsquared
      @FADHsquared 2 года назад +1

      I find it ironic that there's a very high chance you're using a frontend framework that uses Babel and/or other transpilers and module bundlers under the hood. Go ooga booga in vanilla JS to prove your point, please.

    • @oogabooga2581
      @oogabooga2581 2 года назад

      @@FADHsquared cool il wait 3 or 4 weeks for you to catch up writing your static types 😂 Imagine transpiling code just for that

  • @dantheman9555
    @dantheman9555 Год назад

    I'm a shit dev, TypeScript turned me into a less shit dev, now I can at least feel worthy of getting paid under market rate.

  • @mototribe5124
    @mototribe5124 Год назад

    The title should be "Vue and Typescript by Elon Musk"

    • @mototribe5124
      @mototribe5124 Год назад

      @L He resembles more like Elon Musk. JK.

  • @PeaceInAfrica
    @PeaceInAfrica Год назад +1

    Nope, I'm fine with JS you can keep your typescript to yourself no thank you.

    • @smiffy68
      @smiffy68 Год назад +1

      You really should make the effort. You won't regret it.