The other issue with code review, and I'm glad I've not worked with people like this anymore, for the person being reviewed: NOBODY IS ATTACKING YOU, nobody is saying your code is bad, the goal is to do a once-over for quality. Another goal people often miss: It's okay to ask "stupid questions" and I would argue as a Junior, ask away, even if no code changes happen, ASK. Kind of follows the spirit of the original pos…
Not true. I’ve attacked people before in the sense I was disgusted with the short cuts they took and the things they tried to get away with in the code. I’ve seen the malicious deletion of features in order to stay hidden and I’ve called it out.
The primary purpose of code review is to find code that will be hard to maintain
131–140 of 193 posts
Re: The primary purpose of code review is to find code that will be hard to maintain
#132Code review doesn't have a single purpose. Finding code that is hard to maintain is one of those, and and an important one, but certainly not the only one, and I'm not sure it is even the most important one. Other purposes include: - a safety check to ensure that if a developer (or AI) goes rogue, it is more difficult to merge malicious code - a second perspective from someone who isn't as close to the problem and mi…
I agree with all of this, I read into the "single purpose" of understanding the code and complaining about what you don't understand implying that if you understand it, you will be able to point out and comment on things that are wrong /foolish/unsafe/etc after understanding it. From that perspective on the OP, it makes sense to me. Particularly with regard to modularity and factoring; once I understand all of a giga…
Re: The primary purpose of code review is to find code that will be hard to maintain
#133Earlier quoted context omitted.
It's a good practice. Worth mentioning also: the same can be done with ordinary git log, assuming everyone is using git well. A proper git log of yesterday's work can be like your work newspaper with coffee.
this seems like a chain of good practices. though I find it hard to stay disciplined about keeping commits well scoped and well described
Re: The primary purpose of code review is to find code that will be hard to maintain
#134Earlier quoted context omitted.
Write me simple AI inference code that has high performance in big batches.
I don't know enough to speak about that particular domain, but if the junior is writing something the senior can't understand, that's always going to be a problem. That code becomes the team's responsibility, and that code needs to be able to be maintained by the entire team, not only by the junior with something to prove. Who is getting called at 2 AM when something breaks? Not the junior.
Re: The primary purpose of code review is to find code that will be hard to maintain
#135Earlier quoted context omitted.
Such a luxury, I am envious! Our team started using AI, so I switched to a simple method: no comments, and a binary "is this batshit crazy or passable" approval decision rule. Saving myself time and sanity.
Yep, without a decent team culture this is what LLMs force, the slop deluge is just overwhelming without leadership asserting "no, stop" Ultimately you just let bugs through because the alternative is spend an inordinate amount of time communicating with someones claude through PR comments about what the shape should be. Career was fun while it lasted. I suppose its a blessing a to get to do a job that you enjoyed fo…
Re: The primary purpose of code review is to find code that will be hard to maintain
#136Look at the state of the comments on that thread. "This is completely false! Code is review is to ..." proceeds to state an opinion. Sometimes, some days, I just look forward to not having to deal with programmer hubris ever again.
it was expected to be a short-duration fixed-scope activity with a clear Go-NoGo answer, and you would have gotten roasted for digressing into navel-gazing and distracted conversations about armchair philosophy. if the change worked as-advertised and didn't break your work, then it was a 'go', get back to work...
Re: The primary purpose of code review is to find code that will be hard to maintain
#137Re: The primary purpose of code review is to find code that will be hard to maintain
#138Re: The primary purpose of code review is to find code that will be hard to maintain
#139Earlier quoted context omitted.
Another—very old—rationale: People write code differently when they know that it will be reviewed by people who will not only comment on it, but also form long-term impressions of the submitter's competence and fit based on the code that is reviewed.
I've always felt that this is and advantage to open source software. The vast majority of open source software that I've bothered to look at the code for used best practices, was reasonably secure, and was above all maintainable. The bespoke projects that I've worked on at various companies? Complete spaghetti messes almost all of them.
Re: The primary purpose of code review is to find code that will be hard to maintain
#140Earlier quoted context omitted.
I don't know enough to speak about that particular domain, but if the junior is writing something the senior can't understand, that's always going to be a problem. That code becomes the team's responsibility, and that code needs to be able to be maintained by the entire team, not only by the junior with something to prove. Who is getting called at 2 AM when something breaks? Not the junior.
Hehe you think L9s do oncall? Senior not understanding is a problem all right. It's not necessarily junior's problem.