257m to Programming@programming.dev • 1 year agoWhat are your programming hot takes?message-square886fedilinkarrow-up1351
arrow-up1351message-squareWhat are your programming hot takes?257m to Programming@programming.dev • 1 year agomessage-square886fedilink
minus-square@Windex007@lemmy.worldlinkfedilink26•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-squareneillinkfedilink25•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: