This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
flora kalisa wrote:
- coding to an interface is a good practice, is this statement correct ? why ?
Because it decouples the calling code from implementation details that don't matter, making it more robust. The implementation details behind the interface can be modified without the calling code needing to be aware of it, or to have to change.
- coding to an interface is good especially with spring, why ?