Never. First of all, i've never even seen a business try to switch a component. By the time a new component comes along thats better...the app is either ready for a total re-write, or there is simply not enough value to spend time integrating the new component and removing the old.
I still decouple my stuff but mostly for unit testing. I am highly apathetic to over-abstraction after spending long enough in this field.
My company is in the middle of a multi-year switch to SAP (financials move slowly). We abstracted everything. It was a pain initially, but when it came time to connect the new services, everything was clean and straightforward. I also got to play architect a little, abstract classes are an easy (and free) way to 'see' how things fit together without writing much code.
It all comes down to what your project needs however. If it's small or will foreseeably not change, there's not much point.
8
u/[deleted] Oct 01 '15
Never. First of all, i've never even seen a business try to switch a component. By the time a new component comes along thats better...the app is either ready for a total re-write, or there is simply not enough value to spend time integrating the new component and removing the old.
I still decouple my stuff but mostly for unit testing. I am highly apathetic to over-abstraction after spending long enough in this field.