3 ms·
> unnecessary abstraction and boilerplate patterns That means you didn't actually change the code. It means you added unnecessary abstractions around your co
by mpweiher 9y ago
> unnecessary abstraction and boilerplate patterns
That means you didn't actually change the code. It means you added unnecessary abstractions around your code in order not to change it.
Unit tests guide you towards simplicity. In my experience, the only times they haven't done that is when I have made some assumptions about what the code should be and not allowed the tests to drive me towards that simplicity.
http://blog.metaobject.com/2014/05/why-i-don-mock.html http://blog.metaobject.com/2014/05/why-i-don-mock.html