| ▲ | Someone1234 5 hours ago |
| I'm not following this. PRs are the first time your reviewers have seen that change, so there is no opportunity downstream to do the things you're suggesting. You're essentially suggesting pre-PRs, but it is circular, since those same pre-PRs would have the same criticism. PRs are about isolated core changes, not feature or system design. They answer how not why. |
|
| ▲ | bulbar 4 hours ago | parent | next [-] |
| > You're essentially suggesting pre-PRs, but it us circular, since those same pre-PRs would have the same criticism. Walking this road to the end you get pair programming. |
| |
| ▲ | esafak 4 hours ago | parent [-] | | You get to design committees where everything has to be approved in advance. | | |
| ▲ | Someone1234 3 hours ago | parent [-] | | Yep, where productivity goes to die and your developers feel no autonomy/trust. |
|
|
|
| ▲ | ljm 4 hours ago | parent | prev | next [-] |
| Usually by the time a PR has been submitted it's too late to dig into aspects of the change that come from a poor understanding of the task at hand without throwing out the PR and creating rework. So it's helpful to shift left on that and discuss how you intend to approach the solution. Especially for people who are new to the codebase or unfamiliar with the language and, thanks to AI, show little interest in learning. Obviously not for every situation, but time can be saved by talking something through before YOLOing a bad PR. |
| |
| ▲ | nightpool 4 hours ago | parent [-] | | Yes, it should be cheap to throw out any individual PR and rewrite it from scratch. Your first draft of a problem is almost never the one you want to submit anyway. The actual writing of the code should never be the most complicated step in any individual PR. It should always be the time spent thinking about the problem and the solution space. Sometimes you can do a lot of that work before the ticket, if you're very familiar with the codebase and the problem space, but for most novel problems, you're going to need to have your hands on the problem itself to get your most productive understanding of them. I'm not saying it's not important to discuss how you intend to approach the solution ahead of time, but I am saying a lot about any non-trivial problem you're solving can only be discovered by attempting to solve it. Put another way: the best code I write is always my second draft at any given ticket. More micromanaging of your team's tickets and plans is not going to save you from team members who "show little interest in learning". The fact that your team is "YOLOing a bad PR" is the fundamental culture issue, and that's not one you can solve by adding more process. | | |
| ▲ | n_e 2 hours ago | parent [-] | | I'm not sure what approach you're suggesting? Asking a more junior developer or someone who "show little interest in learning" to discuss their approach with you before they've spent too much time on the problem, especially if you expect them to take the wrong approach seems like the right way to do things. Throwing out a PR of someone who doesn't expect it would be quite unpleasant, especially coming from someone more senior. |
|
|
|
| ▲ | embedding-shape 3 hours ago | parent | prev [-] |
| > PRs are the first time your reviewers have seen that change, so there is no opportunity downstream to do the things you're suggesting. Yes, but I'm arguing for that it shouldn't be the first time they hear about that this change is planned and happening, and their input should have taken into account before the PR is even opened, either upfront/before or early in development. This eliminates so many of the typical PR reviews/comments. Figure out where you are going before you start going there, instead of trying to course correct after people already walked places. |