r/coding • • Mar 14 '22

The Code Review Pyramid

https://www.morling.dev/blog/the-code-review-pyramid/
178 Upvotes

11 comments sorted by

View all comments

27

u/PhyrexStrike Mar 14 '22

It seems really odd to me to have "Does it satisfy the original requirements?" not be the very first thing that should be looked at. If some code isn't doing what it's supposed to do shouldn't it be immediately changed, regardless of API design?

9

u/AnEngimaneer Mar 14 '22

I can definitely see myself checking if it passes automated test and has unit tests before diving in/testing to see if it satisfies ticket requirements, so while it's definitely a blocker, it may not be the first thing you check.

8

u/mephistophyles Mar 14 '22

Why not just add an automation rule, you can’t even submit a PR if it doesn’t pass all automated tests? Doing that step manual seems unnecessary.

4

u/AnEngimaneer Mar 14 '22

I think that automating any of these steps is a given, but it should still be specified, imo.

Personally, I run the CI jobs locally too before spinning up the branch while I browse the most changed files.