3 ms·
Care to explain?
by mortyseinfeld 13y ago
Care to explain?
- V-2 13y agoThe use of statics makes mocking and testing very difficult. A few thoughts on the subject: http://misko.hevery.com/2008/12/15/static-methods-are-death-to-testability/ http://misko.hevery.com/2008/12/15/static-methods-are-death-... If you use static classes for business logic, you typically end up with a tightly coupled system in which managing class dependencies is a pain. I think that "messing around with interfaces all the time" is worth the fuss in the long run.