Hacker News new | past | comments | ask | show | jobs | submit login

Good point. I'd argue that either one discourages the other, however. The messier and more complex your architecture, the more valuable tests are. Conversely, the more unit tests you have, the sloppier you can make your architecture.



And I'd argue the opposite. Messy, complex designs are hard to unit test. Writing unit tests encourages clean, well-defined, orthogonal interfaces.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: