News for hackers. Stuff that matters.
Re:Stop writing classes... by tmorton on Saturday March 17, 2012 @04:42PM (#3718138)
Let me clarify what I think you're saying. It's not about testing class X, it's about testing code that uses class X. As long as X is a class, then we can create a mock version and pass around instances of it. If our "X functionality" is stored somewhere else (ie a bare function), then that gets harder.

There are no comments on this comment yet.