• kibiz0r@midwest.social
    link
    fedilink
    English
    arrow-up
    81
    ·
    2 个月前

    It is wild that Anthropic decided to go with “Claude”, as in “Claude Shannon”, as in the guy who formally proved that information degrades every time it passes through a channel that can’t represent it in a mathematically reversible way.

    If you can’t theoretically produce the original code, given the “refactored” code… congratulations, you have lost information.

  • Gyroplast@pawb.social
    link
    fedilink
    English
    arrow-up
    67
    ·
    2 个月前

    Perfection is achieved, not when there is nothing more to add, but when there is nothing more to take away. — Antoine de Saint-Exupére

    +55653, -937? That is not beauty, even if it all “worked”.

    • regdog@lemmy.world
      link
      fedilink
      arrow-up
      33
      ·
      2 个月前

      I would say a few new lines are OK if they at least improve the readability of the code.

      But given that AI was doing the work, I would say it is even less readable now.

      • Gyroplast@pawb.social
        link
        fedilink
        English
        arrow-up
        32
        ·
        2 个月前

        Slinging random quotes at Jr. devs works best if you have one for every rebuttal:

        Everything should be as simple as it can be, but not simpler. — Albert Einstein

    • lengau@midwest.social
      link
      fedilink
      arrow-up
      7
      ·
      2 个月前

      Ive done a few of those, but they were all preparatory refractors, pulling out bits of code to turn them into standalone functions that are only used once because my next PR uses them, and then adding unit tests for those new functions. -100 or so lines of code, +300 or so when you take into account the new docstrings, etc.

      (The secret to doing these preparatory refractors is to actually do them after writing the “next” PR so you’re not unnecessarily refactoring stuff you’re going to touch.)

      • mertn@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 个月前

        I once tasked a guy with writing a floppy disk driver. He wrote two completely different drivers. One for drive A, and another for drive B. Maybe the AI doing the refactoring was trained on that sort of code.

  • hansolo@lemmy.today
    link
    fedilink
    arrow-up
    25
    ·
    2 个月前

    If the movie Tron were true, or The Matrix, and code was alive and sentient, things like this would be horror on the level of the Star Trek: TMP transporter accident.

    • chloroken@lemmy.ml
      link
      fedilink
      English
      arrow-up
      10
      ·
      2 个月前

      You sound like such a fucking loser it is incredible.

      AI fanatics will never cease to amaze me in unpleasant ways.

        • daq@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          4
          ·
          2 个月前

          So strange when I see replies to ml comments. I’ve had all those servers blocked since I started using Lemmy on all the instances I use.

          • ChickenLadyLovesLife@lemmy.world
            link
            fedilink
            English
            arrow-up
            5
            ·
            2 个月前

            I never notice when a user or a thread comes from ml until I say something that is real-world uncontroversial like “Stalin had some people murdered” and get flamed for it. I’ve never really felt the need to block servers on Lemmy but ml sure makes me think about looking up how to do it.

          • chloroken@lemmy.ml
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 个月前

            Bury your head in the sand so the scary communists don’t accidentally convert you!

        • chloroken@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 个月前

          Ah yes, thank you sh.itjust.works user for the weaponized false concern. A tactic employed by shitbrain reactionaries with absolutely nothing constructive to add.

          Was it me calling AI bros losers that made you look for a way out?

    • Kojichan@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 个月前

      slams desk

      THANK YOU!

      Glad I wasn’t the only one who thought of this. Couldn’t help but wonder when the new Fable was numbered like that…