I was talking to my manager the other day, discussing the languages we are using at $dayjob. He kind of offhandedly said that he thinks TypeScript is a temporary fad and soon everything will go back to using JavaScript. He doesn’t like that it’s made by Microsoft either.

I’m not a frontend developer so I don’t really know, but my general impression is that everything is moving more and more towards TypeScript, not away from it. But maybe I’m wrong?

Does anyone who actually works with TypeScript have any impression about this?

  • eratic@slrpnk.net
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    7 months ago

    Personally I’d rather use JSDoc in my own projects for type annotations and call it a day. I find TS a bit annoying but that might be because I’m not that familiar with it.

    • FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      7 months ago

      That’s just Typescript with extra steps.

      Though I have also done this once or twice for single-file projects where I didn’t want to deal with actually running tsc. It has some annoying downsides though, e.g. you don’t get to have a tsconfig.json and the syntax sucks.

      Microsoft had a proposal to allow TS annotations in JavaScript which would have been awesome and fixed the syntax issue.

      Looks like it was discussed a year ago and hasn’t really made much progress. Seems like lots of people wanting to shoehorn runtime type checking onto it.

      • eratic@slrpnk.net
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        7 months ago

        Is it? I just have it auto-generate in my IDE with snippets. If I was using TS I would still document using TSDoc anyway. You can use jsconfig.json instead.