You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Encapsulate What Changes](#encapsulate-what-changes)
33
34
34
35
## KISS
35
36
@@ -315,3 +316,22 @@ Curly's Law is about choosing a single, clearly defined goal for any particular
315
316
316
317
*[Curly's Law: Do One Thing](http://blog.codinghorror.com/curlys-law-do-one-thing/)
317
318
*[The Rule of One or Curly’s Law](http://fortyplustwo.com/2008/09/06/the-rule-of-one-or-curlys-law/)
319
+
320
+
## Encapsulate What Changes
321
+
322
+
A good design identifies the hotspots that are most likely to change and encapsulates them behind an API. When an anticipated change then occurs, the modifications are kept local.
323
+
324
+
Why
325
+
326
+
* To minimize required modifications when a change occurs
327
+
328
+
How
329
+
330
+
* Encapsulate the concept that varies behind an API
331
+
* Possibly separate the varying concept into its own module
332
+
333
+
Resources
334
+
335
+
*[Encapsulate the Concept that Varies](http://principles-wiki.net/principles:encapsulate_the_concept_that_varies)
336
+
*[Encapsulate What Varies](http://blogs.msdn.com/b/steverowe/archive/2007/12/26/encapsulate-what-varies.aspx)
0 commit comments