User Tools

Site Tools


principles:open-closed_principle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
principles:open-closed_principle [2013-03-18 09:44] – external edit 127.0.0.1principles:open-closed_principle [2013-06-22 20:43] christian
Line 1: Line 1:
-====== Open-Closed Principle ======+====== Open-Closed Principle (OCP) ======
  
 ===== Variants and Alternative Names ===== ===== Variants and Alternative Names =====
Line 6: Line 6:
 ===== Context ===== ===== Context =====
 /* fill in contexts here: */ /* fill in contexts here: */
-  * [[contexts:Object-Oriented Design]] +  * [[contexts:Object-Oriented Design]] 
 +  * [[contexts:API Design]] 
  
  
Line 25: Line 27:
 ===== Caveats ===== ===== Caveats =====
  
-See section [[#contrary principles]].+Beware that wrong application of OCP may lead to the anti-pattern [[anti-patterns:onion]]. 
 + 
 +See also section [[#contrary principles]].
  
  
Line 79: Line 83:
   * [[http://www.butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod|ButUncleBob: Principles of OOD]]   * [[http://www.butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod|ButUncleBob: Principles of OOD]]
  
 +===== Discussion =====
 +
 +Discuss this wiki article and the principle on the corresponding [[talk:principles:Open-Closed Principle|talk page]].
principles/open-closed_principle.txt · Last modified: 2022-03-02 23:55 by tory