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

  • fosforus@sopuli.xyz
    link
    fedilink
    arrow-up
    2
    ·
    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.

  • tunawasherepoo@iusearchlinux.fyi
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    10 months ago

    I’m not really involved in javascript land so im parroting off of what i’ve heard for “why js over ts?”

    • it reduces file size since you no longer need to ship source maps
    • ctrl+clicking stuff will take you to the definition rather than an unhelpful type declaration
    • if you spot a bug in the library, you can edit the source directly than having to recompile/reimport
    • ts adds some unnecessary type “gymnastics” (can’t speak for what this means), when all they really want is intellisense thru jsdoc

    So mainly: devs who don’t prefer strongly typed languages, and library devs who find typescript to be less transparent and more time consuming for new and old contributors than it’s worth