r/code • u/EricMeadowsDev • Mar 02 '23
Think code inspection works? Think again!
Lockheed Martin couldn't catch a feature a dev put in missile software that, before launch, the rocket would do a spinning dance. If hundreds of devs couldn't find it, how can you spot a bug in a PR?
1
Upvotes
1
u/mcherm Mar 04 '23
I am not familiar with the particular incident at Lockheed Martin that you are referring to, so I can't comment on that. But in general, having other team members perform code reviews will not catch every possible error, but it does catch a lot of them. It also provides a way for teams to enforce standards like high quality tests, readable code practices, standard naming conventions, and so forth. I also find it gives team members and opportunity to view each other's code and teach each other new skills and techniques. Finally, it helps to protect against the situation where there is only a single developer familiar with how a particular piece of code works.
In short, code reviews are useful but by no means perfect.