Better HN
topnewbestaskshowjobs
Log inSign up

agnosias

13 karma · joined Feb 24, 2015 (11y ago) · 2 submissions

Submissions

comment 5y ago · link · parent

Honest question: if you don't do dependency inversion, or if you don't depend on interfaces/abstractions that can't be mocked - how do you unit test your code?

Unit testing is the only reason pretty much all of my code depends on interfaces. Some people seem to consider this a bad thing/over-engineering, but it's how I've seen it done in every place I've worked at.

How do you do it?

comment 11y ago · link · parent

Could you describe in more details how you got burned? (I have never done anything big in haskell)