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.
-
-
Replying to @shit_so_says
@shit_so_says This isn't necessarily bullshit... Writing tests often has the tendency to force you to solve these problems.1 reply 0 retweets 0 likes -
Replying to @nouswaves
@sebinsua 'new' and static methods have nothing to do with being able to test code. Read https://en.wikibooks.org/wiki/Haskell/Testing …1 reply 0 retweets 0 likes -
Replying to @shit_so_says
@shit_so_says Oh, the comment was about Haskell? I couldn't comment. Some mainstream languages are more testable with dependency injection.1 reply 0 retweets 0 likes -
Replying to @nouswaves
@sebinsua No. The concept of "side effect" is equally applicable to all programming languages. Haskell is just explicit about it.1 reply 0 retweets 0 likes -
Replying to @shit_so_says
@shit_so_says The engineer that wrote that specialises in .NET. He's not trying to write a general comment on all unit testing.2 replies 0 retweets 0 likes -
Replying to @nouswaves
@shit_so_says Seems he's talking about a language-level signifier of difficult to test code.1 reply 0 retweets 0 likes -
Replying to @nouswaves
@shit_so_says I understand you're just raising the level of abstraction to look at the generalised problem so +1 to that.1 reply 0 retweets 0 likes -
Replying to @nouswaves
@sebinsua I'm not raising any level of abstraction here. What that user said is just false, for all languages where 'new' or 'static' apply.1 reply 0 retweets 0 likes -
Replying to @shit_so_says
@shit_so_says You raised the level of abstraction to Haskell. The .NET engineer commented mentioning the library 'TypeMock'.2 replies 0 retweets 0 likes
@shit_so_says He's referring to testing units of work which have side-effecting dependencies created inside them. 'new' is just a signifier.
-
-
Replying to @nouswaves
@sebinsua The comment said nothing about "units of work which have side-effecting dependencies" hence my original tweet.0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.