gpt4 book ai didi

architecture - 架构模式和架构风格有什么区别?

转载 作者:行者123 更新时间:2023-12-03 07:24:10 25 4
gpt4 key购买 nike

软件架构 - 基础、理论和实践中,我可以找到两者的定义。问题是我不明白它们每一个的简单英语含义:

架构模式

An Architectural Pattern is a named collection of architectural design decisions that are applicable to a recurring design problem parameterized to account for different software development contexts in which that problem appears.

架构风格

An Architectural Style is a named collection of architectural design decisions that (1) are applicable in a given development context, (2) constrain architectural design decisions that are specific to a particular system within that context, and (3) elicit beneficial qualities in each resulting system.

每一项的含义是什么以及它们之间有什么区别?

最佳答案

架构模式是解决重复出现的架构问题的一种方法。例如,MVC 解决了将 UI 与模型分离的问题。传感器- Controller -执行器是一种模式,可以帮助您解决面对多个输入感官时的执行问题。

另一方面,架构风格只是给经常出现的架构设计的一个名称。与模式相反,它的存在并不是为了“解决”问题。

Pipe&filter 不能解决任何特定问题,它只是组织代码的一种方式。客户端/服务器、主程序和子例程以及抽象数据类型/OO,相同。

此外,单个架构可以包含多种架构风格,每种架构风格可以使用多种架构模式。

关于architecture - 架构模式和架构风格有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3958316/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com