5 ms·
I love the Object Mentor guys' blog articles, but they get a new blog every 2 years so it's really hard to find their articles in one place. I remember reading
by tieTYT 13y ago
I love the Object Mentor guys' blog articles, but they get a new blog every 2 years so it's really hard to find their articles in one place.
I remember reading one, I think by Michael Feathers, that was about how sometimes your code gets larger when you refactor and that's expected and good. He compared code to an orange. The rind is the class/method signatures. The pulp is the implementation. If the rind get larger by reducing the size and DRY violations of the pulp, you can consider that worthwhile. If anyone can find this article I'd be grateful. I haven't been able to track it down myself.
- tbrownaw 13y agoHe compared code to an orange. The rind is the class/method signatures. The pulp is the implementation. If the rind get larger by reducing the size and DRY violations of the pulp, you can consider that worthwhile. That sounds very very wrong, as you're making your code's clients do more work / be more complex just so you can simplify your implementation.
- tieTYT 13y agoThat's a huge assumption on your part. You should show me an example in code of what you think I'm saying.