Creational Design Patterns
Complete Developer Podcast - En podcast af BJ Burns and Will Gant - Torsdage
A constructor is a function that is used to build an object and it is part of that objects definition. Calling a constructor causes cohesion between the code and the object being instantiated. Making changes in the objects can cause problems when calling the constructor. Strongly typed languages tend to catch these errors at compile time however dynamic languages such as JavaScript may not catch the errors until runtime or later. The creational design patterns are ways to break this cohesion