|
|
|
|
|
by RHSeeger
998 days ago
|
|
I trust and respect the people I work with. I also prefer to have code reviews, even (especially) of my own code. Code reviews can point out code that - Doesn't consider an edge case (NPEs being the most common) - Doesn't match up well with the "standard" way we do things (and, all things being equal, using the same approach in every place improves maintainability) - Has a simpler approach - Doesn't have a comment where it's not clear _why_ the code is doing something (that the author of the code sees as obvious, because they wrote it) - Has misleading method/class/field names These are all things that I've seen from both myself and others on my team. Having one other team member take a look at my code before it goes to QA can save a lot of time later. |
|
Who cares about an edge case no user's gonna see?
Who cares about an edge case for a non business critical feature?
Who cares if there was a better way to implement something if it's not a priority?
Our work it's not meant to give us devs intellectual challenges but solve people's problems.
All the things you list are reasonable if you're making money or they are core to the product or they impact user's safety in any way.
Otherwise they don't matter at all.
And half the things you list are solved by having high hiring standards and paying people well.
Stuff may not be perfect, maybe there will be better ways, maybe it will be inconsistent at times but it will be more than good enough and move the business forward at much higher speed. Also, just to reiterate I've never stated that we don't have standards or make architectural decisions or don't give feedback. I merely stated that reviewing PRs for us is an exception, not a rule and that I prefer a system of trust.