Re:Avoid Null Checks by Replacing Finders with Tellers
by tbrownaw on Monday June 17, 2013 @02:34PM
(#5895005)
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.
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.
Re:Avoid Null Checks by Replacing Finders with Tellers
by tieTYT on Monday June 17, 2013 @03:04PM
(#5895205)
That's a huge assumption on your part. You should show me an example in code of what you think I'm saying.
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.