News for hackers. Stuff that matters.
Re:The Gang of Four is Wrong and You Don't Understand Delega... by dasil003 on Tuesday August 14, 2012 @07:45PM (#4383659)
I'm not following your point. I'm saying that true delegation as defined by the article is in fact a useful tool for good software design. Maybe not as broadly useful as standard message forwarding, but something which deserves its own term.
Re:The Gang of Four is Wrong and You Don't Understand Delega... by btilly on Tuesday August 14, 2012 @08:07PM (#4383728)
Delegation as defined by the article makes every method call made by the delegated to class part of the programming interface that you need to be aware of when choosing to delegate. Delegation as defined by GoF makes only a specified set of callbacks be part of that interface.

That says that delegation as defined by GoF does more to promote modularity than the original definition, and therefore is more often going to be preferred in good software design over that defined by the article.

This is not to say that there aren't cases where what the article promotes is not convenient. Violating modularity is usually convenient. But that is a convenience that we should always be wary of.