Questions tagged [creation-pattern]
17 questions
0
votes
0 answers
Constructor pattern and Object.create pattern effects on __proto__
Premise: I'm try to abbandon constructor pattern
As you can see in looking at console.log() here
//Constructor pattern
function F(){}
F.prototype.foo = null;
console.log(new F());
//Object create pattern
var FPrototype =…

Nemus
- 1,322
- 2
- 23
- 47
-1
votes
2 answers
Parametrized Abstract Factory / Factory Method / other creation patterns
I want to have some factory (doesn't matter if Abstract Factory pattern or Factory Method - looks like the second is specific form of the first one. In my case only one object should be created). The thing is that although created products are…

Saint
- 5,397
- 22
- 63
- 107