I was wondering if all design Patterns are only used in Object-Oriented design? Are there any design patterns used in non Object-Oriented design?
Thanks and regards!
I was wondering if all design Patterns are only used in Object-Oriented design? Are there any design patterns used in non Object-Oriented design?
Thanks and regards!
Design Patterns for Functional Strategic Programming
http://homepages.cwi.nl/~ralf/dp-sf.pdf
Incorporating Functional Design Patterns In Software Development
http://www.via-nova-architectura.org/files/UniversityOfTwente/Bosman.pdf
Design patterns are not about specific languages or programming paradigms, but about higher level software designs and their reuse.
Most of the examples seen these days pertain to OOP as this is the most used programming paradigm used at the moment.
See the answers to this SO question (How is OOP and Design Patterns related?).
As can be seen by the other answers to this question, design patterns exist outside of OOP...
Organizational Patterns of Agile Software Development (patterns about creating development teams and assigning roles)
Design Pattern can be generally refer to proven solution to recurring problems. This is not limited to one programming paradigm.
Absolutely not. It doesn't have to be tied to object-orientation (OOP).
In fact it is possible to inject those patterns in the object models using aspect-oriented programming (AOP) without intruding your domain models. See this example with AspectJ
Another link to design pattern implementation in AOP with AspectJ, it implements numerous patterns from GoF in AOP: Design Pattern Implementations using Aspect-Oriented Programming
In the past I made a catalog of patterns used in several contexts of software development. This is a partial list of that catalog. Hope it makes the idea
Full image is here: http://rearchitect.files.wordpress.com/2006/01/taxonomy.png