Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
roderic
· 10y ago · 0 comments
I like dependency injection over Singleton for automated testing purposes. Singleton implies global state which is always hard to mock. Injecting a network manager that feeds you your test data has been a nice clean way for me.
Comments
No comments yet.
Better HN