Information-Expert, Tell-Don\'t-Ask, and SRP are often mentioned together as best practices. But I think they are at odds. Here is what I\'m talki
You can talk about "Tell Don't Ask" when you ask for object's state in order to tell object to do something.
In your first example TransferObjectFactory.createFrom just a converter. It doesn't tell Customer object to do something after inspecting it's state.
I think first example is correct.