| ▲ | rootusrootus 4 days ago |
| As someone else mentioned, the process is async. But I achieve a similar effect by requiring my team to review their own PRs before they expect a senior developer to review them and approve for merging. That solves some of the problem with people thinking it's okay to fire off a huge AI slop PR and make it the reviewer's responsibility to see how much the LLM hallucinated. No, you have to look at yourself first, because it's YOUR code no matter what tool you used to help write it. |
|
| ▲ | muzzio 4 days ago | parent | next [-] |
| Reviewing your own PR is underrated. I do this with most of my meaningful PRs, where I usually give a summary of what/why I'm doing things in the description field, and then reread my code and call out anything I'm unsure of, or explain why something is weird, or alternatives I considered, or anything that I would catch reviewing someone else's PR. It makes it doubly annoying though whenever I go digging in `git blame` to find a commit with a terrible title, no description and an "LGTM" approval though. |
|
| ▲ | unbalancedevh 4 days ago | parent | prev | next [-] |
| > requiring my team to review their own PRs before they expect a senior developer to review them I'm having a hard time imagining the alternative. Do junior developers not take any pride in their work? I want to be sure my code works before I submit it for review. It's embarrassing to me if it fails basic requirements. And as a reviewer, what I want to see more than anything is how the developer assessed that their code works. I don't want to dig into the code unless I need to -- show me the validation and results, and convince me why I should approve it. I've seen plenty of examples of developers who don't know how to effectively validate their work, or document the validation. But that's different than no validation effort at all. |
| |
| ▲ | rootusrootus 4 days ago | parent | next [-] | | > Do junior developers not take any pride in their work? Yes. I have lost count of the number of PRs that have come to me where the developer added random blank lines and deleted others from code that was not even in the file they were supposed to be working in. I'm with you -- I review my own PRs just to make sure I didn't inadvertently include something that would make me look sloppy. I smoke test it, I write comments explaining the rationale, etc. But one of my core personality traits (mostly causing me pain, but useful in this instance) is how much I loathe being wrong, especially for silly reasons. Some people are very comfortable with just throwing stuff at the wall to see if it'll stick. | | |
| ▲ | alfons_foobar 4 days ago | parent | next [-] | | > added random blank lines and deleted others from code that was not even in the file they were supposed to be working in. Maybe some kind of auto-formatter? | | |
| ▲ | rootusrootus 4 days ago | parent [-] | | That is my charitable interpretation, but it's always one or two changes across a module that has hundreds, maybe thousands of lines of code. I'd expect an auto-formatter to be more obvious. In any case, just looking over your own PR briefly before submitting it catches these quickly. The lack of attention to detail is the part I find more frustrating than the actual unnecessary format changes. | | |
| ▲ | Aeolun 3 days ago | parent [-] | | Why would you are about blank lines? Sounds like aborted attempts at a change to me. Then realizing you don’t need them. Seeing them in your PR, and figuring they don’t actually do anything to me. | | |
| ▲ | baq 3 days ago | parent [-] | | More likely artifact of debug prints being removed. |
|
|
| |
| ▲ | ok_dad 4 days ago | parent | prev [-] | | > Yes. I have lost count of the number of PRs that have come to me where the developer added random blank lines and deleted others from code that was not even in the file they were supposed to be working in. That’s not a great example of lack of care, of you use code formatters then this can happen very easily and be overlooked in a big change. It’s also really low stakes, I’m frankly concerned that you care so much about this that you’d label a dev careless over it. I’d label someone careless who didn’t test every branch of their code and left a nil pointer error or something, but missing formatter changes seems like a very human mistake for someone who was still careful about the actual code they wrote. | | |
| ▲ | hoten 4 days ago | parent [-] | | I think the point is that a necessary part of being careful is reviewing the diff yourself end-to-end right before sending it out for review. That catches mistakes like these. | | |
| ▲ | code_for_monkey 4 days ago | parent [-] | | i myself have been guilty of creating a pr and immediately pushing a commit to clean that stuff up |
|
|
| |
| ▲ | jjmarr 4 days ago | parent | prev | next [-] | | Many are just doing SWE for the money. Their goal is to pass the hot potato to someone else, so they can say in the standup "oh I'm waiting on review" making it not their problem. | |
| ▲ | epiccoleman 4 days ago | parent | prev | next [-] | | > I want to be sure my code works before I submit it for review. No kidding. I mean, "it works" is table stakes, to the point I can't even imagine going to review without having tested things locally at least to be confident in my changes. The self-review for me is to force me to digest my whole patch and make sure I haven't left a bunch of TODO comments or sloppy POC code in the branch. I'd be embarrassed to get caught leaving commented code in my branch - I'd be mortified if somehow I submitted a PR that just straight up didn't work. | |
| ▲ | lokar 4 days ago | parent | prev | next [-] | | It’s cultural. It always seemed natural to me, until I joined a team that treated review as some compliance checkbox that had nothing to do with the real work. Things like real review as an important part of the work requires a culture that values it. | |
| ▲ | tqian 4 days ago | parent | prev [-] | | Oh junior devs submit PRs that don't fully work all the time. |
|
|
| ▲ | theshrike79 4 days ago | parent | prev [-] |
| We have an AI doing the first pass PR review using company standards as a prompt. It catches the worst slop in the first pass easily, as well as typos etc. |