I worked with a guy who was so obsessed with testing he never even bothered to ask what the feature or problem the code was to solved
He happily and condescendingly told every else how much they sucked because he had 1000% test coverage
When he released he had tons of bugs because his code wasn’t going what it was supposed to
His answer: yelling at product and tech leads for not being clear
The rest of us had tests but spent as much time asking clarifying questions
The guy above is one of the reasons I just lost all interest in software. This was a major FAANG company and his smooth talking continues today with management none the wiser because “he has the tests” Arby’s
Seems to intersect with my experience.
The best guys I've worked with had test...to some extend...especially in places that did some work you could easily get wrong by not thinking about a small edge case.
Yet, none of them had or pursued 100% coverage as they were all clearly aware of that there is no actual benefit in that number, but that it can also mean harm by heavily slowing down dev speed and tying down your feature set because you're too lazy to always port some useless tests.
Our field is burdened by complexity. Some people cannot function properly without illuding themself they can tame it. So they cling to rules, best practices, tools hoping that adopting them to the letter will protect them from the uncertainties of our job.
I've seen the opposite too, devs not only not writing any test, but not trying to run a single line of the code they wrote. Reason being I cannot test all the edge cases so I won't test it at all. QA will open a bug. And somehow getting praised by management for being faster than others to ship changes.
He happily and condescendingly told every else how much they sucked because he had 1000% test coverage
When he released he had tons of bugs because his code wasn’t going what it was supposed to
His answer: yelling at product and tech leads for not being clear
The rest of us had tests but spent as much time asking clarifying questions
The guy above is one of the reasons I just lost all interest in software. This was a major FAANG company and his smooth talking continues today with management none the wiser because “he has the tests” Arby’s