Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are Design patterns specific to Language or Technology?

Question over here is are design patterns specific to a programming language or technology,

Like you can do composite pattern only in C#,Java but not in VB6.0.Is that true, If yes that what are pattern that can't be implemented with out object oriented programming languages.

like image 855
Mohit Avatar asked Mar 26 '10 22:03

Mohit


People also ask

Are design patterns language independent?

Design patterns are programming language independent strategies for solving a common problem. That means a design pattern represents an idea, not a particular implementation.

Are design patterns language agnostic?

Design patterns are a collection of language agnostic solutions to common programming problems.

Which language is best for design patterns?

For learning design patterns, you probably want Java or C#. Those languages tend to be used by people that consider design patterns as idiomatic ways of writing the language. i.e. people consider using many design patterns in Java or C# to be the “correct” way of writing C# or Java.

Is design pattern only for Java?

Programming design patterns can be used across all programming languages and can be used to fit any project because they only give you a general outline of a solution.


1 Answers

Design patterns are not language specific per se, however some patterns can be paradigm specific, for example implementing a singleton pattern in C makes no sense as you might as well just write a plain old module.

However design patterns are not language specific but can be more useful or make more sense in different paradigms (OO vs structured vs functional)

like image 110
hhafez Avatar answered Nov 07 '22 01:11

hhafez