4 ms·
Good idea in general. Not sure I agree with the idea of inlining a bunch of code in order to refactor an abstraction. I've always found the easiest way to ref
by rsyring 8y ago
Good idea in general. Not sure I agree with the idea of inlining a bunch of code in order to refactor an abstraction.
I've always found the easiest way to refactor is to get really good code coverage on the outermost layer of code that uses the abstraction, remove/ignore unit tests if there are any on the abstraction itself, then refactor the abstraction with vigor until it feels appropriate and hopefully elegant or is removed if necessary. As long as all your tests still pass, you should be good to go.