Ask HN: Designing via Interface in Java?
1 comments
I'm not clear on what the conceptual hurdle is.
Of course it's a common pattern--that doesn't mean it's always necessary. It does make a lot of things easier, like testing, etc.
It's the same thing as declaring your vars as `List` or `Collection` instead of `ArrayList`. If you do the same thing in your system you give yourself much more flexibility.
Of course it's a common pattern--that doesn't mean it's always necessary. It does make a lot of things easier, like testing, etc.
It's the same thing as declaring your vars as `List` or `Collection` instead of `ArrayList`. If you do the same thing in your system you give yourself much more flexibility.
If so are there any online books / blogs regarding the same?
Note: I had already asked the question in Java Subreddit, but I want to get HN community thoughts as well.