2 ms·
Especially when you're aware of the difference between pure and impure functions, and when you believe in the importance of testing. I'd rather test a dozen sma
by lostcolony 12y ago
Especially when you're aware of the difference between pure and impure functions, and when you believe in the importance of testing. I'd rather test a dozen small, mostly pure functions, and have the function that ties them all together be 'obvious' (and still integration tested), than to have one gigantic complex function that I need to try and test, and any related change causes a dozen tests to break.