What's the difference between design patterns and architectural patterns?

前端 未结 5 949
遥遥无期
遥遥无期 2020-11-29 14:28

When we read about design patterns on the internet we note that there are 3 categories:

  • Creational
  • Structural
  • Behavioral
5条回答
  •  清歌不尽
    2020-11-29 15:24

    Design Patterns are well known patterns for solving technical problems in a way that has proven itself many times. Design patterns are common design structures and practices that make for creating reusable Object-Oriented software. Design pattern examples are Factory Pattern, Singleton, Facade, State, etc. Design patterns can be used to solve smaller problems throughout the application, and are much easier to inject, change, add than the overall architecture

    architecture patterns are well known patterns for solving software application architecture problems. Software application architecture is the process of defining a structured solution that meets all of the technical and operational requirements. Application's architecture is the overall 'organization' of the code. Examples of different Architectures might be MVC, MVVM, MVP, n-layer (i.e. UI-BLL-DAL), etc. The architecture typically needs to be decided up front and often is difficult to change once the application is built.

提交回复
热议问题