Problem Area Object Schizophrenia


Second problem area is sometimes called object schizophrenia. And this is, an example of this was the visitor pattern, where we split off the functionality having to do with the elements into a separate place where all the operations were contained. In a sense, this beaks delegation. It has also been called the self problem. When you delegate responsibility to perform part of a computation to methods in your attributes, as opposed to handling them yourself. This can lead to additional complexity, particularly when you’re trying to debug and find out where something went wrong.

About the author

Leave a Reply

Your email address will not be published. Required fields are marked *