DEV Community

Discussion on: How to avoid the Factory pattern in C#

 
shimmer profile image
Brian Berns • Edited

I think we’re in agreement that factories are useful. My only point is that modern C# can accomplish the same thing using functional programming instead of OO classes.

(The GoF book was written before mainstream OO languages supported functional programming.)