Welcome to Shaun Luttin's public notebook. It contains rough, practical notes. The guiding idea is that, despite what marketing tells us, there are no experts at anything. Sharing our half-baked ideas helps everyone. We're all just muddling thru. Find out more about our work at bigfont.ca.
Contents tagged with design-patterns
-
Principles of Object Oriented Design
DRAFT Some of the following are self-explanatory. Others require some explanation. Encapsulate what varies. Restrict outside access to the details of routines that might need to change with … more
-
Object-oriented basics: inheritance, polymorphism, encapsulation, and abstraction
Inheritance prototypal inheritance allows an object to base itself on another object class-based inheritance allows a class to base itself on another class both allow the child to access the parent' … more
-
The Factory Pattern(s)
Simple Factory Encapsulate object creation within a class. Factory Method Define a class that does operations on an object. Let sub-classes choose the object. Abstract Factory Encapsulate creation … more