It seems I don't get it... though I understand and apreciate the idea of delegation and minimizing getters and setters, the builder example seems like overhead to me. To avoid having to change code in every "client class" when I change mi logic class, I instead create a number of builders and exporters for that class, practically one for each GUI I need, then I only have to change those builders and exporters. As far as I have seen, the number of final clients will be one for each exporter/builder pair (a GUI component for example, that I can reuse).
Right, so this only makes sense if I will have more than several such clients for each type of importer/exporter. Or not? I'm I missing something. So finally, if this is not the case I'm only putting a kind of firewall class between real interface and the object, but the number of coupling is the same.
Also, about passing information in strings, I do neet to know wich information the string carries and in wich format to make something usefull of it (unless of course if I want to display it unchanged).
|