257m to [email protected] • 1 year agoWhat are your programming hot takes?message-square804fedilinkarrow-up1344
arrow-up1330message-squareWhat are your programming hot takes?257m to [email protected] • 1 year agomessage-square804fedilink
minus-square@[email protected]linkfedilink26•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: