DesignPatterns icon indicating copy to clipboard operation
DesignPatterns copied to clipboard

Refactor examples with Readme and more real-world cases

Open abishekaditya opened this issue 5 years ago • 1 comments

A strategy pattern that makes ducks quack is less useful than that which uses an actual strategy to help the developer (like say, a sorting function that changes implementation based on number of elements). The readme should also be there as an introduction to the need for the pattern itself, as well as maybe some good quality (subjective) external references and links

abishekaditya avatar May 02 '20 17:05 abishekaditya

How would you implement this? I found this article, would this work? Inheriting IList or ICollection from the Duck class? https://newdevsguide.com/2022/10/09/understanding-dotnet-collection-interfaces/

FunkyMonk8111 avatar Feb 04 '23 18:02 FunkyMonk8111