4 ms·
That's the OO theory, but interfaces do frequently change in any codebase that isn't mature, because it's not always clear up front what the interface actually
by _delirium 15y ago
That's the OO theory, but interfaces do frequently change in any codebase that isn't mature, because it's not always clear up front what the interface actually should be, and if you haven't committed to supporting it (e.g. because it's an externally exposed API that can't be dropped), it can be better to change your 6-month-old interface than keep one you realized wasn't great.
- jaggederest 15y agoGood tests help you change either the interface or the implementation separately. Trying to change both at once is madness, in my opinion, and almost impossible even with good tests.