• bleistift2@feddit.de
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    1 year ago

    I know this implies that the reviewer didn’t care to read the bigger PR, but I think this might actually be legit. If your PR is only 10 lines long, then chances are those lines are very dense, or intricate in some other way. However, if you submit 500 lines, then it’s probably mostly boilerplate code with trivial adaptions.

    No-one in their right mind would submit 500 lines of substantial code.

    • kabat@programming.dev
      link
      fedilink
      arrow-up
      7
      ·
      1 year ago

      Has no one here ever worked on a new project or even a new feature in a decently sized codebase? Working exclusively in maintenance / minor change mode has to be exhausting.

      • bleistift2@feddit.de
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        1 year ago

        Depends on what you classify as “minor change”. When I took up my first professional project, I found a plethora of little things to improve which would make users happy. That was very satisfying.

        On the other hand, writing yet another module that displays a list of Foos, lets the user create a Foo, show the details of Foo, update it, and delete a Foo, becomes dull quickly, despite being a “new feature”.

    • nul@programming.dev
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      1 year ago

      You’d be surprised. Especially if the testing environment is not readily available or if automated tests are not functional and comprehensive, large code changes can be the norm. A developer may habitually hang onto their code until a big chunk is complete, at which point it will take heaps of debugging to uncover where the errors are. This is why we need IaC to quickly create testing environments that closely mirror prod, and trunk-based development to ensure code changes are small and issues are caught as early as possible.

    • Bagel@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      500 line of substantial code happens once in a while in my team. Goes beyond that sometimes.