Is typescript worth using?

Is typescript worth using?

Mike Stoklasa's Worst Fan Shirt $21.68

Unattended Children Pitbull Club Shirt $21.68

Mike Stoklasa's Worst Fan Shirt $21.68

  1. 1 month ago
    Anonymous

    If you are serious about JavaScript engineering then yes. It makes your life so much easier especially when debugging.

    • 1 month ago
      Anonymous

      does it? Doesn't make my life easier. Source maps making breakpoints sometimes not work, renaming variables so I can't easily access them in the debugger, using libraries being a hassle when they don't (or even when they do) provide types, having to deliberately misconfigure tsconfig in order to get some libs working as modules or non-modules.
      Pure JS with typedoc is a muuch easier life

  2. 1 month ago
    Anonymous

    using for what? ask a real question and you'll get a real answer

    • 1 month ago
      Anonymous

      >using for what?
      personal web projects

      • 1 month ago
        Anonymous

        it's fine form your own opinion

      • 1 month ago
        Anonymous

        TS may have a point when collaborating. If you're working alone, it's always created more problems for me than it solved - but your milage may vary

      • 1 month ago
        Anonymous

        The benefits of types show themselves after a certain size of project. For smaller personal project, the extra build stdps and stuff are more of a headache. JSDoc gives you the same editor knowledge that TS would, but it’s up to you.

  3. 1 month ago
    Anonymous

    >for sanity during development
    no
    >for sanity during maintenance
    absolutely yes

  4. 1 month ago
    Anonymous

    No. If you need to use it, then you need to reconsider the design of your web application.

  5. 1 month ago
    Anonymous

    I hate Typescript so much it's unreal
    >why wouldn't you want a compile step to your interpreted language
    >grab a coffee while you're at it because you'll be waiting for a while
    >that node module doesn't have type definitions? well sucks for you
    >you want to call that API? go write some interface definitions to fluff the compilerbull
    >oh you just command clicked a function from an imported library, of course you must want to see the type definition instead of its implementation duh
    >sorry your module resolution is wrong have fun figuring out what the frick that means
    not gonna lie it has prevented some bugs but it's an abomination to nature, javascript was meant to be buggy and terrible at least it's honest about it

    • 1 month ago
      Anonymous

      The only bugs I ever had with javascript are related to logic and undefined/misspelled variables. I never had an issue with getting the types wrong. How the hell do people program these days?

      • 1 month ago
        Anonymous

        idiots don't know nor understand coercion in JavaScript and that gives rise to all the moronic errors

        • 1 month ago
          Anonymous

          Type system goes well beyond “getting types wrong.”

          If you don't understand javascript well enough to know how types are handled in javascript, then you should be programming in javascript.

          • 1 month ago
            Anonymous

            *shouldn't be

      • 1 month ago
        Anonymous

        Type system goes well beyond “getting types wrong.”

  6. 1 month ago
    Anonymous

    jsdoc > typescript

  7. 1 month ago
    Anonymous

    just use jsdoc while ecmascript adds support for types

  8. 1 month ago
    Anonymous

    for frontend stuff nowadays i just use C#

  9. 1 month ago
    Anonymous

    depends on what you're making and how good you are at writing proper code. TS is used by large organizations so idiots follow the coding policy set for that organization. A properly written code doesn't require TS if you know the difference between == and === and when one should be used over other.

  10. 1 month ago
    Anonymous

    if you have access to reliable debugger, you don't need it

  11. 1 month ago
    Anonymous

    I hate Typescript because the extra build step is a fricking nightmare.
    Also, it was a pain in the ass to get working with some test frameworks.
    That said, I WILL NOT start any new projects without it now.
    For all its shittiness, the trade-off in my experience is well worth it and I'd abhor having to work on any projects that do not use it.

  12. 1 month ago
    Anonymous

    Absolutely fricking not.
    The entire usefulness of Javascript is that it's a powerful yet freeform language, perfect for creating prototypes in.
    The moment you start adding constraints you remove the entire point of the language. Might as well start using an actual optimized language at that point.

  13. 1 month ago
    Anonymous

    [...]

    >accused other anons of nocoders
    >need crutches to make up for being scatterbrained and not knowing how javascript works

    • 1 month ago
      Anonymous

      [...]
      >NEET nocoder morons/GPT posts
      says the cuck that needs mommy to hold hand while pissing because can't understand JS fundamentals

      >y-you can't make your life easier!
      kek, I bet you've never worked on a larger project in any language in your life. ngmi

      • 1 month ago
        Anonymous

        sure ting, Ranjesh... don't forget to wash your hands after shitting

  14. 1 month ago
    Anonymous

    [...]

    >NEET nocoder morons/GPT posts
    says the cuck that needs mommy to hold hand while pissing because can't understand JS fundamentals

  15. 1 month ago
    Anonymous

    Only if you're committed to the JS ecosystem.
    Though if you're living in the JS ecosystem you're living in hell anyway.

  16. 1 month ago
    Anonymous

    Both are deprecated.
    https://pyscript.net/

Your email address will not be published. Required fields are marked *