News for hackers. Stuff that matters.
Re:The Gang of Four is Wrong and You Don't Understand Delega... by btilly on Tuesday August 14, 2012 @07:01PM (#4383514)
I agree that there are cases where pedantry is necessary for programmers. That does not mean that pedantry is necessarily valuable.

In this case a distinction is being drawn that would make "delegation" mean something that is worse from the point of view of good software design, which would leave the thing that is better software design without its commonly understood name. Doing this would create negative value.

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.