21 comments

  • midiguy 14 hours ago ago

    Pretty much every issue with Typescript is actually an issue with Javascript. Typescript is purely an improvement.

  • ineedausername 15 hours ago ago

    It looks like "ai generated" is the problem.

    • fullstackwife 14 hours ago ago

      Is this a bigger problem than Microsoft Front Page(or other WYSIWYG) generated code? How would you compare this Upwork contractor quality code?

      • javcasas 13 hours ago ago

        Frontpage code is isolated in a single file, a single page in your website.

        AI code is often reused, because it's code and you are supposed to export/import it. Hence the damage spreads instead of being contained.

  • purple-leafy 14 hours ago ago

    Sounds like AI is the problem, which I agree, LLMs in most peoples hands outputs garbage.

    Luckily I’m working in a codebase with “human” issues, which I’m responsible for refactoring

  • ChrisArchitect 15 hours ago ago

    Related:

    Next.js, Just Why? (2023)

    https://news.ycombinator.com/item?id=41803327

  • aristofun 15 hours ago ago

    TypeScript is the best thing that ever happened to js and to web dev in general to date.

    JS infra and tooling is the worst thing that is still happening to web dev.

    Both are slowly getting better and better. I see no objective reason to stay narcissistic about it in 2024.

    Bad code is a universal problem, not a feature of a specific language.

  • hu3 13 hours ago ago

    Next.js projects I've seen became semi disposable after a year.

  • 2024user 13 hours ago ago

    how many new codebases could you have worked with that are AI generated?

  • m0llusk 13 hours ago ago

    TypeScript can be great, but in practice I have seen teams lean on it as a way of taming data models that are overly complex and changing at rates that strain the ability of developers to keep up. Sometimes it might more sense to control complexity and extreme rates of change directly instead of moderating their impacts by using TypeScript like a blind person's cane.

  • CuriouslyC 16 hours ago ago

    If typescript is an instant turn off for you, you might not be an engineer.

    • syndicatedjelly 15 hours ago ago

      What is an "engineer" to you?

    • decremental 13 hours ago ago

      [dead]

    • wryoak 15 hours ago ago

      If you write a web language as a primary part of your job, you might not be an engineer.

      In all seriousness though, I hate having to add a bunch of tooling to my dev process so that I get to write extra syntax to avoid warnings about valid code in the language as it is actually interpreted by the VM. It’s bureaucratic bs, so yeah, I avoid roles heavy on TS.

      JS has a type system already. Its rules are laid out in easy to read specs. Maybe ”engineers” should learn how JS works instead of placing “safety” features in the way of their half baked understanding of the code and how it interacts with external data from the DOM, http requests and so on.

      • MisterKent 13 hours ago ago

        If you write a systems language as a primary part of your job, you might not be an engineer.

        In all seriousness though, I hate having to add a bunch of tooling to my dev process so that I get to write extra syntax to avoid warnings about valid code in the language as it is actually interpreted by the CPU. It’s bureaucratic bs, so yeah, I avoid roles heavy on C.

        Assembly has a type system already. Its rules are laid out in easy to read specs. Maybe ”engineers” should learn how Assembly works instead of placing “safety” features in the way of their half baked understanding of the code and how it interacts with external data from the terminal, disks and so on.

      • EduardoBautista 13 hours ago ago

        Typescript is about reducing and almost eliminating runtime errors. We rarely have any errors show up on our error monitoring tools because of Typescript.

      • purple-leafy 14 hours ago ago

        TS does not have a VM. So you’re starting off on the wrong foot. And JS does not have a type system at all.

        Also, you shouldn’t gatekeep who is/isn’t an engineer.

        • javcasas 13 hours ago ago

          JS has a dynamic type system. You may not like it, that doesn't mean it doesn't have one.

          Otherwise, no programming language would have a type system except for Idris, for exactly the same reason.

          • purple-leafy 13 hours ago ago

            Maybe I’m misunderstanding, could you give me an example?

            Do you mean the fact that it can imply a variables type from assignment?

            Edit: I’m plainly wrong, mishmashing words.

            Yes JavaScript has a dynamic type system

            • javcasas 13 hours ago ago

              Type systems don't deal with variables. Type systems deal with interactions between values. Maybe those values are inline, maybe they are stored in variables.

              You don't imply anything from an assignment other than the variable now has or is pointing to the new value. This is the same in every programming language. The only difference is that some programming languages gatekeep what you can assign to a variable based on types.

  • javcasas 13 hours ago ago

    TS is fine. Some people overengineer it absurdly. But in decent quantities is fine.

    I have recently used NextJS, after not using it for a few years. It feels like it has jumped the shark. Meh new features bur requires redoing many things.