The Abstract Factory Pattern in C#
Abstract Factory is a pattern in which you can create interfaces for related objects without specifying their implementation.
Abstract Factory is a pattern in which you can create interfaces for related objects without specifying their implementation.
Let's build the Factory Method pattern using sandwiches and C#!
Lately I've been on something of a design patterns kick, from realizing that patterns are tools, not goals [https://exceptionnotfound.net/software-design-patterns-are-not-goals-they-are-tools/] to developing and recording an extensive course for my employer and my fellow programmers at my current employer. It's been enlightening, to say the least. In fact, I
I've been working on an upcoming modeling practice [https://exceptionnotfound.net/tag/modelingpractice/] blog post and I needed (once again [https://www.exceptionnotfound.net/simulating-candy-land-in-net-part-2-programming-the-game/] ) to implement a card-shuffling algorithm. As always, I turned to the trusty Fisher-Yates shuffle [https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle] to
I went through a phase earlier in my career [http://www.exceptionnotfound.net/be-like-us-or-else-desperation-failure-and-new-job-regret/] where I thought design patterns were the be-all, end-all of software design. Any system which I needed to design started with the applicable patterns: Factories, Repositories, Singletons, you name it. Invariably, though, these systems were difficult