On Reuse

David Lorge Parnas said in 1994:

Reuse is something that is far easier to say than to do. Doing it requires both good design and very good documentation. Even when we see good design, which is still infrequently, we won’t see the components reused without good documentation.

Strategy pattern to implement two types of Users

I posted on stackoverflow the question “How to organize an OO design with two different types of users” and I had interesting replies.

With the guidance of trashgod and Tom Anderson, I’ve come up with the following structure. First there is a generic user and two derived classes.

public abstract class User { public String . . . → Read More: Strategy pattern to implement two types of Users