GenericGuidelines

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
(Generic Guidelines)
 
(One intermediate revision by one user not shown)
Line 10: Line 10:
 
* Comments on what makes these examples good/poor including design maxims and principles adhered to/violated.
 
* Comments on what makes these examples good/poor including design maxims and principles adhered to/violated.
 
...
 
...
 
  
  
 
[http://pab-data.blogspot.com/2008/04/generics-oo-anti-pattern.html Here] is an interesting article that describes how the use of generics should be considered an [[Antipatterns|Anti pattern]] in OO design.
 
[http://pab-data.blogspot.com/2008/04/generics-oo-anti-pattern.html Here] is an interesting article that describes how the use of generics should be considered an [[Antipatterns|Anti pattern]] in OO design.
 
The author talks about how the use of generics in modern OO programming languages introduce encapsulation leaks and increases coupling. He also mentions the complexities surrounding overriding a super classes methods that implement a generic in the method signature.
 
The author talks about how the use of generics in modern OO programming languages introduce encapsulation leaks and increases coupling. He also mentions the complexities surrounding overriding a super classes methods that implement a generic in the method signature.
What do we think of this article? Do we think the authors arguments are valid? Does the flexibility of generics add more to OO programming that detract from it?
+
What do we think of this article? Do we think the authors arguments are valid? Does the flexibility of generics add more to OO programming that detract from it? -- [[User:Oliver Cardwell|Oliver Cardwell]] 01:49, 21 October 2010 (UTC)

Latest revision as of 01:49, 21 October 2010

Generic Guidelines

This is a discussion page for developing ideas around the use of generics in designs and the issues that arise. Please drop comments and submit feedback to this page as it is a recent addition to the wiki...

--Linda 20:58, 3 October 2010 (UTC)


Ideas for contributions to this page:

  • Links to examples of good/poor use of generics.
  • Comments on what makes these examples good/poor including design maxims and principles adhered to/violated.

...


Here is an interesting article that describes how the use of generics should be considered an Anti pattern in OO design. The author talks about how the use of generics in modern OO programming languages introduce encapsulation leaks and increases coupling. He also mentions the complexities surrounding overriding a super classes methods that implement a generic in the method signature. What do we think of this article? Do we think the authors arguments are valid? Does the flexibility of generics add more to OO programming that detract from it? -- Oliver Cardwell 01:49, 21 October 2010 (UTC)

Personal tools