• SorteKanin@feddit.dk
    link
    fedilink
    arrow-up
    19
    ·
    21 hours ago

    Eh, as funny as this is, I can’t agree that programming peaked with Java. In fact, much of this is just a rant about JavaScript, not about much else.

    VSCode can easily do cross-file renames if you write Rust. Rust is kind of peak programming if you ask me, and it’s modern and still new. I don’t feel programming has peaked yet tbh.

      • douglasg14b@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        12 hours ago

        … Kind of.

        It’s flakey af on large enough codebases.

        Nothing anywhere near as reliable and robust as C# or Java for refactorings.

        • arty@feddit.org
          link
          fedilink
          English
          arrow-up
          2
          ·
          9 hours ago

          Well, I’ve never seen it fail. Sorry that your experience was different.

    • AbelianGrape@beehaw.org
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      21 hours ago

      Eh rust still has issues in some domains, e.g., when cyclic data is appropriate. You can do it, but it’s annoying. To me, Haskell is really peak programming, but I know that’s opinionated and most won’t agree.

      Vscode can do cross-file renames in pretty much any language. An LSP that doesn’t support this is not doing its job.

      • SorteKanin@feddit.dk
        link
        fedilink
        arrow-up
        4
        ·
        20 hours ago

        Eh rust still has issues in some domains, e.g., when cyclic data is appropriate

        This might be but then again I’ve been writing Rust for several years and have yet to actually run into this problem. The borrow checker definitely places certain restrictions on what kind of stuff you can do (for good reasons!). Once you know how it works, your brain starts writing the code in advance to fit how the borrow checker likes it and it becomes second nature and a total non issue.

        Of course this is part of the reason Rust has a bit of a learning curve, which is fair. But any good sophisticated tool meant for professionals requires proper training and knowledge.

        • AbelianGrape@beehaw.org
          link
          fedilink
          arrow-up
          4
          arrow-down
          1
          ·
          19 hours ago

          Yeah it depends what you’re doing. I do a lot of circuit modeling where different subsystems need to talk to each other. The solutions are either Rcs (and a bunch of custom drop logic) or a parent struct holding all the others. Both are awkward. But in other programming domains I’ve found rust pleasant.

          • TehPers@beehaw.org
            link
            fedilink
            English
            arrow-up
            2
            ·
            17 hours ago

            What might benefit you here is a proper GC. There are a few libraries to do this in Rust, though I don’t have any good recommendations since I haven’t needed this myself yet.