Hacker News new | ask | show | jobs
by dozzie 3691 days ago
Projects that consider "testability" as a requirement tend to produce systems that are perfectly testable, but this is orthogonal to whether the architecture makes sense and can be composed with something else.
1 comments

maybe so. i guess my comment is a reaction after seeing a few projects where it is an afterthought.

i assume by "orthogonal" you mean independent, i.e. just because a system is testable it does not mean it necessarily has other desirable properties.

Actually sometimes being easy to run tests on harms the code, because the code grows its surface just to plug in more tests, or the author stops at "I can test it, so it's good enough" instead of ensuring the architecture and/or interface is so simple that it can't ever possibly fail.