Hacker News new | ask | show | jobs
by donjoe 3223 days ago
I experienced while writing a lot of tests, the code suddenly became - more readable - less over-engineered - replaceable - easier to maintain since it's easier to write tests for "clean code".
1 comments

Exactly, even if you don't write tests for a component, it pays off to think about how it could be made testable. You can still choose to add tests later on.