Here's what I don't understand:
interface CreateAccountRequestBoundary
{
OutputResponseBoundary CreateAccount()
}
interface CreateAccountResponseBoundary
{
bool didSucceed;
List<String> errorsEncounteredDuringCreationAttempt;
}
I'd really appreciate any and all help.
Thanks!!
The output boundary interface is implemented by a presenter.
All I can see in this interface is one (or more) data structures. I'm having a hard time envisioning any methods that could be placed here. Especially if following the "Tell Don't Ask" principle, I tell the input Boundary to do something and it returns without an exception or I ask it for something and it returns what I asked for. Either way, I can only imagine the output Boundary interface containing data structures and no methods. As such, I'm having a hard time understanding why it (the output boundary interface) needs to be an interface at all. Why not just the data structure itself?
--
The only way to go fast is to go well.
---
You received this message because you are subscribed to a topic in the Google Groups "Clean Code Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clean-code-discussion/nekZdSK1vaw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clean-code-discu...@googlegroups.com.
To post to this group, send email to clean-code...@googlegroups.com.
Visit this group at http://groups.google.com/group/clean-code-discussion.
The controller calls the boundary for the interactor. Since the interactor implements that boundary, the controller needs access to the interactor instance. But we don't want the controller to know about the interactor directly. So we use a factory.