Most code w/o tests has hard dependencies (i.e. new everywhere) or static methods, so it's almost impossible to throw a unit test in place.
@shit_so_says This isn't necessarily bullshit... Writing tests often has the tendency to force you to solve these problems.
-
-
@sebinsua 'new' and static methods have nothing to do with being able to test code. Read https://en.wikibooks.org/wiki/Haskell/Testing … -
@shit_so_says Oh, the comment was about Haskell? I couldn't comment. Some mainstream languages are more testable with dependency injection. - 23 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.