• CXORA@aussie.zone
    link
    fedilink
    English
    arrow-up
    280
    ·
    1 month ago

    People who share the size of a codechange as a mark of how effective ai coding agents are truly missing the point of code changes.

      • CorrectAlias@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        42
        ·
        1 month ago

        In college, on the first day of orientation, someone in my class bragged that they wrote 50,000 lines of code for a game that was similar to tic tac toe, emphasizing that he “wrote a lot of code”. A TA told him that it wasn’t a sign that his program was decent and that it really didn’t seem like it should take 50k lines of code to make something as simple as his game.

        He dropped out after the first week of intro to programming.

      • ViatorOmnium@piefed.social
        link
        fedilink
        English
        arrow-up
        18
        ·
        1 month ago

        I wouldn’t say PR size is a bad metric, you usually just need yo read it the opposite of how sloppers do it, i.e. the most productive PRs are short and focused.

          • ViatorOmnium@piefed.social
            link
            fedilink
            English
            arrow-up
            17
            ·
            1 month ago

            I’m not saying it’s a good individual metric. In fact, applying individual metrics to developers (or most workers really), will only land you in Goodhart’s hell.

            But as part of holistic operational health tracking, it’s a useful team level metric, as there is ample evidence that shorter PRs tend to result in less operational issues. And, of course, this is only valid if you don’t try to tie financial rewards to it, otherwise people will forget that PR size is a proxy measure for how easy changes are to review and rollback.

        • Slotos@feddit.nl
          link
          fedilink
          arrow-up
          2
          ·
          1 month ago

          I’m working with a legacy codebase for the last few months, where a simple PR often ends up crossing a 1000 lines count due to testing and commenting, and I can’t stop apologizing for those.

          Yet there are people out there bragging about 10x changesets.

    • Klear@quokk.au
      link
      fedilink
      English
      arrow-up
      44
      ·
      1 month ago

      I’m just a hobbyist, but I’m always more proud of commits that remove stuff.

      • sqw@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        8
        ·
        1 month ago

        i refactored some web code i wrote ten years ago and it’s more elegant and a tenth the size with new features because of language advancements. feels great.

    • Redkey@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      1 month ago

      You reminded me of a story I recently read, where the author highlighted just how much awesome programming someone had done by describing how their hands were cramping up.

      It’s like estimating how well an artist paints by looking at how much paint is on their clothes, or judging how good a cook is by how many cuts and burns they have. The actions that cause those things are incidental to the process, not central, and an excessive amount points to incompetence, not hard and skillful work.

    • Ech@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      1 month ago

      Might as well be bragging about pictures they’ve taken of their bowel movements.