• z500
      link
      fedilink
      English
      32 years ago

      I’ve been designing CPUs and writing machine code and assembly for the last month and it’s been a blast.

    • @dbilitated@aussie.zone
      link
      fedilink
      62 years ago

      if you’re a beginner, and you post an opinion and lots of people say that many years of professional experience make them disagree with you, why would you not take that on board? I wish you well on your learning journey. at some point you’ll outgrow vanilla js and you’ll have learned enough to configure transpilation and webpack etc. it’ll be a good day.

    • parrot-party
      link
      fedilink
      62 years ago

      The fact that you’re doubling down on your ignorance is quite problematic. Typescript is not an enterprise system that forms arcane JS. It’s literally JS with a slight adjustment that allows you to say “also this is this type”. You write JS the entire time and can “disable” the typescript at any location you need to not be typed.

    • @sweeny@sh.itjust.works
      link
      fedilink
      15
      edit-2
      2 years ago

      How can you even form an opinion on this if, as you stated in that thread, you literally have no idea what typescript is and are just a beginner in js? You got down voted for saying typescript is unnecessary without even knowing what it is or what the thing you’re working with’s limitations are, which is a pretty objectively braindead stance to take. You’re a beginner js developer, you have no idea what you’re talking about when it comes to preferences of ts vs js, just that all of the beginner level stuff you have tried to do works in js so therefore typescript or frameworks must be unnecessary

    • @DeriHunter@lemmy.world
      link
      fedilink
      -12 years ago

      Another junior with a god complex it’s funny how writing an if statement make you feel like you know everything in the galaxy

  • @Phen@lemmy.eco.br
    link
    fedilink
    33
    edit-2
    2 years ago

    Typescript may have a million problems that make getting into it annoyingly hard and even seem pointless, but once it’s settled in your project and used well… Damn is it fucking good.

    And I’m saying that even though I had to disable intellisense and most of those advanced features because the project I work for is too large and typescript would easily use over 20GB of RAM and get my computer to freeze.

    But if you’re trying to use it like a traditional typed language, you’ll only see the bad side of it and you’ll certainly hate it.

  • @o11c@programming.dev
    link
    fedilink
    42 years ago

    I haven’t managed to break into the JS-adjacent ecosystem, but tooling around Typescript is definitely a major part of the problem:

    • following a basic tutorial somehow ended up spending multiple seconds just to transpile and run “Hello, World!”.
    • there are at least 3 different ways of specifying the files and settings you want to use, and some of them will cause others to be ignored entirely, even though it looks like they should be used.
    • embracing duck typing means many common type errors simply cannot be caught. Also that means dynamic type checks are impossible, even though JS itself supports them (admittedly with oddities, e.g. with string vs String).
    • there are at least 3 incompatible ways to define and use a “module”, and it’s not clear what’s actually useful or intended to be used, or what the outputs are supposed to be for different environments.

    At this point I’m seriously considering writing my own sanelanguage-to-JS transpiler or using some other one (maybe Haxe? but I’m not sure its object model allows full performance tweaking), because I’ve written literally dozens of other languages without this kind of pain.

    WASM has its own problems (we shouldn’t be quick to call asm.js obsolete … also, C’s object model is not what people think it is) but that’s another story.


    At this point, I’d be happy with some basic code reuse. Have a “generalized fibonacci” module taking 3 inputs, and call it 3 ways: from a web browser on the client side, as a web browser request to server (which is running nodejs), or as a nodejs command-line program. Transpiling one of the callers should not force the others to be transpiled, but if multiple of the callers need to be transpiled at once, it should not typecheck the library internals multiple times. I should also be able to choose whether to produce a “dynamic” library (which can be recompiled later without recompiling the dependencies) or a “static” one (only output a single merged file), and whether to minify.

    I’m not sure the TS ecosystem is competent enough to deal with this.

    • @ebc@lemmy.ca
      link
      fedilink
      12 years ago

      This last part sounds nice in theory, but it’s way outside the scope of what Typescript is intended to accomplish. I’ve been pursuing a similar goal on and off for 10+ years at this point, I even wrote an ORM for Backbone.js so I could use it on the server as well. Back then we called it Isomorphic Javascript, later on it got renamed to “universal javascript”, nowadays I’m not sure.

      But yeah, the problem is similar with any code, really… What you’re often writing in software dev is just functions, but the infrastructure required to actually call said function is often not trivial. I agree it’d be nice to be able to have different “wrapper types” easily, but I’m afraid their usefulness would be limited beyond toy projects.

  • @lobut@lemmy.ca
    link
    fedilink
    342 years ago

    I dunno, Typescript can be nice at times but it always feels like I’m bolting on something that doesn’t belong on top.

    I’ll still use it for now. Not sure JSDoc is as adequate for an enterprise app for me. I know Svelte and stuff do, but I’ll wait and see.

  • Throwaway
    link
    fedilink
    412 years ago

    Typescript is great for catching long standing bugs in old legacy JS.

  • @PeWu@lemmy.ml
    link
    fedilink
    162 years ago

    I am just a little “programmer” (if I can even call myself like that), and I’m using Typescript. Sure, it has it’s own shortcomings, as everything, but it looks better than plain JS (at least in vscode)

  • @Immersive_Matthew@sh.itjust.works
    link
    fedilink
    English
    -312 years ago

    Is it even going to matter in the next 3-5 years? AI is going to make its own, kore efficient language and all the ones we use will be for hobby, fun and those who did not adapt.

    • cloaker
      link
      fedilink
      132 years ago

      Not the case. Ai can write binary. Languages are for humans to be able to use.

      • @Immersive_Matthew@sh.itjust.works
        link
        fedilink
        English
        -52 years ago

        I agree with you, but writing human readable code will become a cottage craft and hobby as while it is good to know, AI will just be so much faster and better that coding anything yourself will make little business sense. I am already writing way less code, especially with the 100k token windows over on Poe.com which seems to handle most of my script sizes.

        • @Kuresov@programming.dev
          link
          fedilink
          2
          edit-2
          2 years ago

          This might handle scripts as you described, but just wait until it needs the context of random bits of a tens-of-millions-of-lines monorepo plus knowledge of custom infrastructure that isn’t documented anywhere and–oh wait, we can’t actually let this LLM-as-a-service read our code because X and Y compliance/security/legal/etc, even if we ran it on-prem.

          The robots aren’t coming for you so soon, don’t worry.

          • I think you are right if the progress on AI is linear, but if it continues to be exponential, nothing you said, even undocumented is going to be a barrier. That assumes AGI is coming and is as smart as the smartest people. We will see, but my money is on the progress surprising everyone. I am surprised by how much AI has improved over the last 6 months alone.

        • cloaker
          link
          fedilink
          22 years ago

          Certainly not in the next 3-5 years will this be a thing.