| From the retrospective. > And yet I do know that you can write complex, relatively bug free code without tests, because I did it. > I do know that you can write complex, relatively bug free code without anyone looking over your code, because I did it. > If no one uses your app then who cares if it crashes. > If many people use your app and it crashes, they’ll tell you and then you’ll fix it. Those four statements are contradictory. What they're saying is not that you don't need testing or code reviews, but that you can get your users to test for you. I figure the author probably does test their code (everybody tests, even if that just means running the app), but not rigorously or in a way that you could say gives one the security of regression tests. No-one worth discussing the issue with claims that it's impossible to write complex code without automated testing. I'm a huge proponent of automated testing, and I wrote a relatively large, cross-platform renderer without a single automated test back in the late 90s/early 00s ... it just took a long time, and I became increasingly terrified of making changes. Edited for formatting. |
What I was trying to say is: there's dogma about tests and code reviews.
At Google you would get fired for suggesting skipping code review.
Even at smaller Silicon Valley companies (smaller == less than 10 devs) it's unthinkable to not do code reviews. I haven't worked outside SV so it might be different.
That's the dogma.
My point is that maybe we should apply a bit of common sense on top of that.
I'm not saying Google should stop doing code reviews - the cost (to Google) of google search breaking is so high that you do 100x more than just code reviews.
But maybe those smaller companies don't need to dogmatically review the checkin for a documentation fix.