20 ms·
The first paradigm to understand is that everything that makes code bad is also what makes it hard to test. If code is hard to test, that means the code is bad.
by hayst4ck 4y ago
The first paradigm to understand is that everything that makes code bad is also what makes it hard to test. If code is hard to test, that means the code is bad.
This was in my opinion the best and quickest source on good testing practice, which often meant change the code being tested:
https://misko.hevery.com/code-reviewers-guide/ https://misko.hevery.com/code-reviewers-guide/
Sadly, it looks like he has neglected his site, but the content can still be seen through google cache.
This page still seems to work and contains a much meatier amount of content: http://misko.hevery.com/attachments/Guide-Writing%20Testable%20Code.pdf http://misko.hevery.com/attachments/Guide-Writing%20Testable...