Popcorn

  • ohlaph@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    2
    ·
    18 days ago

    I always felt like TypeScript was a sad attempt to make JavaScript something it isn’t.

    There are perfectly good languages and JavaScript should only be used for lightweight scripting purposes. Sure Node can work for small web projects, but man what a clusterfuck it becomes at the enterprise level.

    • msage@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      18 days ago

      Even for small things it turns into a clustefuck.

      It’s almost a miracle how bad it is.

      It’s almost like Perl in that regard.

    • Cratermaker@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      2
      ·
      18 days ago

      A proper type system should be like the bumpers in a bowling alley, where you know the ball will at least stay on the track. Typescript is more like the ball launching ramp, where you probably won’t yeet the ball straight into the gutter but it can still certainly end up there.

      I agree TS is just not a good idea to start with, but it might at least be respectable if it actually had runtime enforcement. Maybe then node wouldn’t be as horrible, though you’re always better off with a real backend language anyhow.