257m@lemmy.ml to Programming@programming.dev · 1 year agoWhat are your programming hot takes?message-squaremessage-square892fedilinkarrow-up1352arrow-down114
arrow-up1338arrow-down1message-squareWhat are your programming hot takes?257m@lemmy.ml to Programming@programming.dev · 1 year agomessage-square892fedilink
minus-squareWindex007@lemmy.worldlinkfedilinkarrow-up26·1 year agoIf code reviews in your org are glorified “styleguide checks”, then they are not really code reviews at all. Also, if you’re only getting design input at code review time, that’s WWAAYY too late in the process. Code reviews should be: Establishing that the code has proper test coverage (functional correctness VIA coverage, not code observation) Establishing that it doesn’t have unintended consequences in the ** implementation** (making db calls in a loop, exposing secure information, etc) That the implementation is of the high-level design that was already established and agreed upon by the larger development unit. A opportunity to ask questions to learn from whoever wrote the code An opportunity for the reviewers to teach techniques that could have helped in the code
minus-squareneil@programming.devlinkfedilinkarrow-up25·1 year agoYou missed one: To let others at least have some insight into what you’re doing so you can take a freakin’ vacation every once in a while
If code reviews in your org are glorified “styleguide checks”, then they are not really code reviews at all.
Also, if you’re only getting design input at code review time, that’s WWAAYY too late in the process.
Code reviews should be:
Establishing that the code has proper test coverage (functional correctness VIA coverage, not code observation)
Establishing that it doesn’t have unintended consequences in the ** implementation** (making db calls in a loop, exposing secure information, etc)
That the implementation is of the high-level design that was already established and agreed upon by the larger development unit.
A opportunity to ask questions to learn from whoever wrote the code
An opportunity for the reviewers to teach techniques that could have helped in the code
You missed one: