Differences

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

Link to this comparison view

it:ad:patterns:solid_ocp [2019/03/24 12:17] (current)
Line 1: Line 1:
 +# IT:​AD:​Patterns:​SOLID/​OCP #
 +
 +
 +
 +<callout type="​Navigation"​ class="​small">​
 +* [[../​|(UP)]]
 +{{indexmenu>​.#​2|nsort tsort}}
 +
 +
 +</​callout>​
 +
 +
 +## Summary ##
 +The Open/Close Principle generally freaks out develops the first time they hear it ("​*What do you mean never go back in and fix things?​!"​). ​
 +
 +That reaction totally makes sense if you generally develop [[IT/​AD/​Design/​AntiPatterns/​God Classes/]] that do way too much. You’ll never get it right. ​
 +
 +But if your classes are small, tight, solutions to singular problems – guess what? *As long as the problem doesn’t change, the contents never will either*. New problem? New jar. 
 +