Reputation: 27585
Can anyone please describe the differences between Design pattern, Architectural pattern, Architectural style, and Architecture? Thanks in advance.
Upvotes: 2
Views: 1939
Reputation: 21
For example:
Upvotes: 1
Reputation: 1304
Design pattern deals with implementaion of a common solution for ceratin problems that can happen while designing a large software application. The examples of problems which i meant here are - code duplication, maintainibility of code for future enhancement etc
Eg: Factory pattern, Dependency Injection pattern
Architectural patterns mainly deals with entire architecute of a software application. They are very re usable and generic and can be adopted based on the requirements.
Eg: MVC, REST, 3 Tier
Upvotes: 0
Reputation: 9456
Design Pattern generally refers to design pattern of a particular bit of code (a few objects or functions) such as Factory Pattern, or Visitor
An architectural pattern refers to the pattern design for a solution, such as Event-Driven, MVC, 3-Tier, etc. It is usually concrete, and can be plugged into a problem with a fairly known set of parameters.
Architectural Style is more abstract, and refers to things like Separation of Layers, SOA, etc. It is not a "solution" to a problem, but is a description of a design.
Architecture is the actual design and implementation of a given solution. It is concrete and specific to a specific solution.
Upvotes: 5