I got fed up with how long-winded software pattern articles are, when often the base concepts are quite simple. In this highly-irregular micro-blog segment, I’ll give you a sweary TL;DR of some of the most common patterns out there.
In class-based programming, a factory is an abstraction of a constructor of a class, while in prototype-based programming a factory is an abstraction of a prototype object. A constructor is concrete in that it creates objects as instances of a single class, and by a specified process (class instantiation), while a factory can create objects by instantiating various classes, or by using other allocation schemes such as an object pool.
It makes you shit and you try not to care how, kinda like Apple.