--
The only way to go fast is to go well.
---
You received this message because you are subscribed to the Google Groups "Clean Code Discussion" group.
To unsubscribe from this group and stop receiving emails from it, 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.
I disagree. Don't use hashmaps and such if you can rely on a typed language like Java. There is so much runtime checking if parameters are in hashmaps. And you still need to define the keys somehow as you say.Better to invent a class that represents the intention. If you have trouble finding the name for the class, maybe there is trouble with your intentions.Read my blog on builder pattern for Java and perhaps you agree with me. http://blog.crisp.se/2013/10/09/perlundholm/another-builder-pattern-for-javaCheersPer
On 12 October 2013 17:06, buddy <jeanfran...@gmail.com> wrote:
@UncleBob often said that you can pass data between components using simple datastructure like a hashmap or a dictionary. It would make sense to store the dictionary or map key in a constants class. Suppose the controller and the interactor component, where should that constant class be ?1. In a seperate component with static variables class. That component will be distributed with interactor and controller for example. Will it make interactor and controller unstable ?2. Each components have it's own constant class, but at some points, it'll violate DRY.3. suggestions ???CheersJFD
--
The only way to go fast is to go well.
---
You received this message because you are subscribed to the Google Groups "Clean Code Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clean-code-discussion+unsub...@googlegroups.com.