I keep seeing posts of some drama with typescript. What happened?

  • fosforus@sopuli.xyz
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    10 months ago

    My who-the-fuck-cares-what-I-think-but-here-it-is-anyway take: Typescript is the only way I can write Javascript without feeling vomit in my throat.

    • glockenspiel@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      10 months ago

      Same boat: people who hate typescript and therefore ensuring type safety probably also hate unit tests because they are too inconvenient to awesome rockstar developers.

      • gravitas_deficiency@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        4
        ·
        10 months ago

        Lmao I’ve literally had conversations with people who have asked me to not be as rigorous with unit tests because you have to change some tests when you make a modification to the business logic.

        Bro: that’s the fucking point.

      • linearchaos@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        10 months ago

        I love unit tests but I hate the eternal struggle behind them.

        We should make unit tests so we can tell when the build runs that the app is going to be consistent

        Everyone cheers

        We lose a sprint setting up unit tests

        Oh this one test just went yellow, somebody spends a few hours figuring it out and finds that it’s a bug in the unit test. No no we’re good That’s just a bug in the unit test we’ll plan to fix that in the next Sprint.

        Oh look now this unit test is going red we’re blocked. 2 hours later they find out that it’s a real problem but it’s not so bad that it overrides current feature work. Well we’re going to need to override that and we’ll have to fix it in the next sprint.

        Unit test failures slowly degrade in priority to try to get feature work done. You end up with a backlog full of yellow and red known problems and no one pays any attention to you that tests anymore.

        • o_d [he/him]@lemmygrad.ml
          link
          fedilink
          arrow-up
          2
          ·
          10 months ago

          I know you’re joking, but this isn’t even true. The feedback loop that you get from pre-written tests in watch mode is pretty much instantaneous. This helps me to arrive at the correct solution much more quickly than trying to validate each case as I go.

    • SubArcticTundra@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      10 months ago

      I feel like (and it was created by Microsoft which would support this) the purpose of TypeScript is to make web development palatable for C#/C++/Java developers.