My first pull request at the new job deleted four hundred lines. It was a flag nobody had turned on in two years, a code path behind it, and the tests that covered the path. I had spent three days making sure nothing else touched it. I checked the callers twice. I ran the suite four times. The diff was red from top to bottom, which felt honest. I wrote the description in one line, "Removes the unused legacy checkout flag and its dead path," and I pressed create before I could talk myself into adding a second line.
Ruth reviewed it the next morning. She was the senior on the team, the one who had been there since the first version, and her review came back in nine minutes with eleven comments.
The first one was on the description itself.
Ruth, 09:41: Could we say "removes" here instead of "deletes"? The flag is being removed, the code is being deleted. Small thing, but let's keep the language consistent with the last few PRs.
I changed it. It was a small thing.
Ruth, 09:42: This test file can go, but the helper in the same file is used by the refund tests. Let's keep the helper and move it to the shared folder instead.
She was right. I moved the helper.
Ruth, 09:44: I would split this commit into two: one for the flag, one for the path. Easier to revert if something goes wrong.
I split it. Two commits, same diff, twice the messages to write.
Ruth, 09:47: The flag name appears in the config docs. Could you update that page too? And the runbook has a line about it under "legacy flags".
I updated both pages. The runbook line was three years old and mentioned a system we no longer ran. I left that part alone and only changed the flag name, because changing more felt like scope creep, and then I sat there for a while wondering whether leaving it was scope creep in the other direction.
By lunch the PR had nineteen comments and I had changed the description four times. The diff itself had barely moved. The flag was still gone, the path was still gone, but the shape of the thing kept shifting under me: the helper moved, the commits split, the docs updated, the test names rewritten to match a pattern Ruth preferred, a pattern I had not known existed until that morning. Every comment was reasonable. Every comment was right, or close enough to right that arguing would have cost more than agreeing. I made each change, pushed, and waited for the next round.
The second round had seven comments. One of them asked me to rename a variable in a file I had not touched, because the variable now appeared in a different context and the old name was misleading. I renamed it. Another asked for a comment above the deleted path's old location, explaining where the code had gone, in case someone came looking. I wrote the comment. It said, in plain words, that the flag had been removed and the path with it, which was the same thing the PR description said, which was the same thing the commit message said. Three places, one sentence, in case someone came looking in any of them.
The third round had two comments. One was a nit on a comma in the runbook. The other said "LGTM".
I merged it at 4:12 in the afternoon. Four hundred lines deleted, two commits, three documentation pages, one moved helper, one renamed variable, one comment explaining where the code had gone. My name was on the merge. I opened the diff one more time and read it top to bottom, and the strange part was that I could not find a single line in it that felt like mine. Not the code, which was mostly red. Not the messages, which Ruth had shaped. Not even the description, which had started as my one line and ended as her sentence with my name under it. Nothing in the PR was wrong. That was the worst part. It was better than what I had submitted. It was better, and it was not mine, and I did not know what to do with both of those facts at once.
I did not say anything about it. Saying it out loud would have sounded ungrateful, and I was grateful, genuinely. Ruth had spent her morning making my first PR better. The team merged things this way. Everyone's first PR went through the same nineteen comments. I told myself that was the job: you submit the work, the review makes it the team's work, and the name on the merge is just the person who happened to open it. I believed it most of the way. The part I did not believe stayed quiet and waited.
It waited five months.
Mina joined in the spring, fresh out of a bootcamp, and her first PR was a small one, a fix to the retry logic in the payment worker. Forty lines changed. I was assigned as reviewer because I had touched that file last, which meant the file still carried the helper Ruth had made me move. I opened the diff in the morning with my coffee and started reading, and the first thing I noticed was the variable name. It was wrong in the way mine had been wrong: a name that made sense in the old context and not in the new one. My fingers were on the keyboard before I had finished the thought. "Could we rename this to match the new context?" I typed it, and then I stopped, because I could see the rest of the comment forming behind it, the whole familiar shape of it: the rename, then the split, then the docs, then the comment explaining where the code had gone, nineteen comments deep, each one reasonable, each one right.
I deleted the comment. I read the diff again, top to bottom, the way I had read mine five months earlier, and this time I read it for what it was instead of what it could be reshaped into. The fix was right. The test covered the case. The variable name was slightly off, and the slightly-off name would not hurt anyone, and Mina would learn the naming pattern on her second PR the way I had learned it on mine, except she would learn it from reading the codebase, not from a stranger rewriting her work line by line in public.
I left one comment. "The retry looks right, and the test covers the case. One question: the variable name still reads like the old context to me. Is there a reason you kept it, or would a rename make it clearer?" Then I approved it. The merge button went green on my word, and she merged it herself ten minutes later, and the variable kept its slightly-off name, and nothing broke.
That evening I opened my own first PR again, the one from five months ago, and read the thread from the top. Nineteen comments, then seven, then two. Ruth's name down the left side, mine down the right, the two of us taking turns until the diff belonged to both of us and neither of us. I scrolled to the bottom, to the merge, to my name on it. Then I closed the tab and opened Mina's PR instead, and read her one comment and her own reply to it, and the thread was short, and the diff was hers, and the name on the merge was hers too, and that was the whole of it.
The stories in this series are fiction. The numbers I write about on weekdays are real, and they live in the AheadKit guides. Everything I write here stays free, that part doesn't change. — Salam
More from AheadKit: programming books, packs and AI tools. Each page lists exactly what's inside before you pay.
Top comments (0)