Re:Ask HN: What's the largest amount of bad code you have ev...
by TickleSteve on Wednesday November 14, 2018 @07:10AM
(#18449250)
(terminology nazi mode)
"... is an indication that the software design isn't (very) decoupled ".
You can be modular without being properly decoupled from the other modules.
Re:Ask HN: What's the largest amount of bad code you have ev...
by danmaz74 on Wednesday November 14, 2018 @06:28PM
(#18455266)
Hmmm... you have a point, but then, shouldn't it be "decoupled into modules"?
I think it's important to point this out, because one of the biggest mistakes I'm seeing developers do these days is relying too much on unit tests (especially on "behavior" tests using mocks) and not trying to catch problems at a higher level using higher level tests. Then the code gets deployed and - surprise surprise - all kinds of unforeseen errors come out.
Unit tests are useful, but they are, by definition, very limited in scope.