Relative Content

Tag Archive for factory-method

Is there a factory pattern to prevent multiple instances for same object (instance that is Equal) good design?

I have a number of objects storing state. There are essentially two types of fields. The ones that uniquely define what the object is (what node, what edge etc), and the others that store state describing how these things are connected (this node is connected to these edges, this edge is part of these paths) etc. My model is updating the state variables using package methods, so all these objects act as immutable to anyone not in Model scope. All Objects extend one base type.

When is it worth NOT using a Factory?

I’m employing TDD quite a bit these days and really enjoying myself – everything seems to flow better and be naturally better constructed and organized. However, while writing a bit of IO code, utilizing System.IO.Streams, and I was wondering – when is it ever worth not using a factory? Because in Streams case, it certainly seems better to not use a factory.

When is it worth NOT using a Factory?

I’m employing TDD quite a bit these days and really enjoying myself – everything seems to flow better and be naturally better constructed and organized. However, while writing a bit of IO code, utilizing System.IO.Streams, and I was wondering – when is it ever worth not using a factory? Because in Streams case, it certainly seems better to not use a factory.

When is it worth NOT using a Factory?

I’m employing TDD quite a bit these days and really enjoying myself – everything seems to flow better and be naturally better constructed and organized. However, while writing a bit of IO code, utilizing System.IO.Streams, and I was wondering – when is it ever worth not using a factory? Because in Streams case, it certainly seems better to not use a factory.

When is it worth NOT using a Factory?

I’m employing TDD quite a bit these days and really enjoying myself – everything seems to flow better and be naturally better constructed and organized. However, while writing a bit of IO code, utilizing System.IO.Streams, and I was wondering – when is it ever worth not using a factory? Because in Streams case, it certainly seems better to not use a factory.