GenericGuidelines

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
(Generic Guidelines)
(Generic Guidelines)
Line 8: Line 8:
 
Ideas for contributions to this page:
 
Ideas for contributions to this page:
 
* Links to examples of good/poor use of generics.
 
* Links to examples of good/poor use of generics.
* Comments on what makes these examples good/poor including design maxims and priciplies 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|Antipattern]] 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 progamming languages introduce encapsulation leaks.
+
The author talks about how the use of generics in modern OO programming languages introduce encapsulation leaks. And also the complexities surrounding overriding a super classes methods that implement a generic in the method signature.

Revision as of 00:38, 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 also the complexities surrounding overriding a super classes methods that implement a generic in the method signature.

Personal tools