Open closed - Code update
Hi All!
I’ve uploaded the code used in the demo on the open closed priciple (part of the SOLID presentations) presented to the Isle of Man software developers group on the 19th of August 2009.
As a reminder….
- All objects with names ending in Specs.cs are the “test” cases
- The folder named “Attempt” is the first try at how we would have looked at solving this problem.(Breaks the OCP)
- The folder “LosTechies” is the solution presented by LosTechies ( a possible solution -that I felt, although addresses the OCP, broke the SRP)
- The folder “Fuzzelogic.Refactored” together with the folder “Infrastructure” contains the solution I presented making use of the specification pattern. It was easier to extend the appliaction when new requirements came about, and it provided us with a reusable “pattern” in extending the matching/filtering solution to other parts of the application
- The Bdd project is used to simplify the “test”ing of and makes for a more readable approach.
The code is available from here
All comments / questions are welcome.
Hope this helps
Zak