Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Design Pattern only for Object-Oriented design?

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!

like image 672
Tim Avatar asked May 24 '10 16:05

Tim


2 Answers

Design Patterns for Functional Strategic Programming
http://arxiv.org/abs/cs.PL/0204015

In previous work, we introduced the fundamentals and a supporting combinator library for strategic programming. This an idiom for generic programming based on the notion of a functional strategy: a first-class generic function that cannot only be applied to terms of any type, but which also allows generic traversal into subterms and can be customized with type-specific behaviour.

This paper seeks to provide practicing functional programmers with pragmatic guidance in crafting their own strategic programs. We present the fundamentals and the support from a user's perspective, and we initiate a catalogue of strategy design patterns. These design patterns aim at consolidating strategic programming expertise in accessible form.

Incorporating Functional Design Patterns In Software Development
http://essay.utwente.nl/631/

This thesis proposes a method for the incorporation of Functional Design Patterns in the software development process. The goal of the method is to enable functional and technical designers to make more efficient use of Functional Design Patterns at different phases of development. The method does not focus solely on functional design but ranges from acquisition all the way to maintenance.

like image 143
Robert Harvey Avatar answered Nov 04 '22 00:11

Robert Harvey


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...

like image 34
Oded Avatar answered Nov 03 '22 23:11

Oded