The other day, I was sitting in a coffee bar with somebody discussing business delegates, session facades and other things from the past. All of a sudden it appeared to me I just figured out a good analogy for these kinds of artifacts. On a piece of paper I wrote the following text:
hello I am writing stuff!
hello I am writing stuff!
and the conversation went on as follows:
me: writing stuff twice is pretty useless isn’t it?
the other guy: well, yeah…
me: I mean, maybe it’s useful in case somebody can’t read the first bit, he might be able to read the second bit…
me: Okay let’s get back to the business delegate. What is it anyway?
the other guy: well, it’s an interface
me: And the session facade
the other guy: well, that’s an interface too
me: What do they contain?
the other guy: hmmm, the exact same methods…
The conversation ended with us making the conclusion that there there no 100% guarantee that there will never be a need for a business delegate anymore, but at least we should always apply common sense to see if these kinds of artifacts are really necessary…
