Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No one will read that discussion, ever. And it is such an epic waste of time to write down all these nitpicky discussions.

And a call where we react to each other takes 3 minutes max while the exchange through comments can take a week. Or, 2 days but both of you need to interrupt what you are doing a lot to answer quickly.

It is just absurd to treat code review as a discussion forum.



I spend half of my life on a legacy codebase, and the past PRs are my go to to understand anything mildly tricky in there.

My biggest realization was that the code comments were meaningless and borderline deceptive compared to the actual discussions and the target specs in the MRs. There's such a gap between what people want to explain or think will be useful, and the info actually needed. And I don't blame them, I'm not sure I'd do better.

My favorite is threads like "This name makes no sense" -> "Sure, give me a better name for X doing Y to Z" -> "Nevermind", which completely explains some of the insane naming, what they actually meant by it, and would never be left in any half official documentation.


I generally agree with you, but this:

"This name makes no sense" -> "Sure, give me a better name for X doing Y to Z" -> "Nevermind"

Should really result in a comment "/* X doing Y to Z */" before the declaration. I try to address these issues by treating PRs the same as phone calls, they can be gone tomorrow, so I put all the things in the code or the commit message. But of course I am not perfect, the people after me will determine whether I was successful.


You can get the best of both worlds by doing a phone call and then writing your insights in the commit message.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: