Vue and Typescript | When to use it

แชร์
ฝัง

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

  • @ivanschekoldin7315
    @ivanschekoldin7315 2 ปีที่แล้ว +18

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

  • @theanswer1993
    @theanswer1993 2 ปีที่แล้ว +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.

  • @dragon3602010
    @dragon3602010 3 ปีที่แล้ว +4

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

  • @patrickkhwela8824
    @patrickkhwela8824 2 ปีที่แล้ว +7

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

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

    Thank you very much for such a good video.

  • @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 2 ปีที่แล้ว +4

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

    • @thomaspotterdotexe
      @thomaspotterdotexe 2 ปีที่แล้ว +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

  • @AstroSardaukar
    @AstroSardaukar 2 ปีที่แล้ว +3

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

  • @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.

  • @Killerkraft975
    @Killerkraft975 4 หลายเดือนก่อน

    Any programmer whos first language isn't js or python, knows the importance of types. Its surprising how many who start with js have no idea about this. After coming to js after languages like Java, C++, C# it feels uncomfortable looking at variables which could be absolutely anything.

  • @jyy8301
    @jyy8301 3 ปีที่แล้ว +6

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

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

    Every time?

  • @timo_b3
    @timo_b3 10 หลายเดือนก่อน

    thank you

  • @gmkhussain
    @gmkhussain 3 ปีที่แล้ว

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

  • @SXsoft99
    @SXsoft99 2 ปีที่แล้ว

    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"

  • @lserranoit
    @lserranoit 3 ปีที่แล้ว +7

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

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

    Let's ReVue :)

  • @tavcode
    @tavcode 3 ปีที่แล้ว

    tansk !

  • @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.

  • @oogabooga2581
    @oogabooga2581 3 ปีที่แล้ว +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 3 ปีที่แล้ว +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 3 ปีที่แล้ว

      @@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 3 ปีที่แล้ว +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 3 ปีที่แล้ว +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 3 ปีที่แล้ว

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

  • @mototribe5124
    @mototribe5124 2 ปีที่แล้ว

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

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

      @L He resembles more like Elon Musk. JK.

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

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

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

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