• bleistift2@feddit.de
    link
    fedilink
    arrow-up
    2
    ·
    2 years 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.

    • Bagel@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

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

    • kabat@programming.dev
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      2 years 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
        2
        ·
        edit-2
        2 years 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”.

      • BadAtNames@lemmy.fmhy.ml
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        I have worked on non-trivial (aka took 10-12 people over a year to even deliver an alpha) greenfield projects, where I literally made the first check-in into the repo.

        The only 500+ line PRs I raised was auto generated boilerplate code, or renaming something.

        I don’t understand the optimism of devs who spend weeks writing code without bothering to test anything they’ve written. Unless you’re writing utterly trivial BS, how does one have this level of confidence in their code? And if you did bother to stop and test, why on god’s green earth would you not raise a PR? Why wait till you have thousands of lines of code before asking for feedback?