Specification Pattern Example [closed]
Asked Answered
C

5

25

After reading a series of blogs (here and here) by Chris Missal from LosTechies.com on the Specification Pattern I am am really interested in finding more complete examples. Does anyone know where I could find a more fleshed out example or perhaps an open source project that uses this pattern?

Conveyor answered 17/9, 2009 at 4:7 Comment(0)
C
26

Also take a look at the Dimecasts 'Learning the Specification pattern' for a walkthrough of an example.

Having learned the Specification pattern through the same blogs as you listed, I'm not yet convinced. It could just be that the examples are too simplistic so it seems more work that it's worth. A good, extensive example that shows come genuine benefit would be nice.

Cosmopolis answered 17/9, 2009 at 6:32 Comment(2)
Doh! I completely forgot about www.dimecasts.net... and I visit the site all the timeConveyor
Well, the link isn't as of today!!Lizethlizette
A
12

Take a look at the "Specifications" paper authored by Eric Evans and Martin Fowler.

The following blog article - "The Specification Pattern" - might also be of use to you.

Apeman answered 17/9, 2009 at 4:12 Comment(0)
G
4

I actually think the Wikipedia page (at the time of this post) is a more concise and easier to absorb example of using the Specification pattern...lostechies.com actually references it.

Here is the link: Wikipedia: The Specification Pattern

Gynandry answered 26/6, 2013 at 10:28 Comment(0)
H
1

For me one of the best examples is the Route Specification that Eric Evans uses on his book.

The source code is here, it is written in Java but is very easy to understand and translate to C#.

Holy answered 6/1, 2016 at 13:26 Comment(0)
F
0

You can find many sample projects about design patterns (Specification Pattern as well) here from "Professional ASP.NET Design Patterns" book.

Federate answered 23/1, 2017 at 20:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.