arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2503.04022cs.SE
收藏

软件的设计义务,以数据抽象和自适应系统为例

Design Obligations for Software, with Examples from Data Abstraction and Adaptive Systems

Mary Shaw

AI总结:

本文提出“设计义务”概念,用于约束设计范式内的允许设计以确保其正确使用,并以数据抽象和基于反馈控制的自适应系统为例进行说明。

摘要:

产出优秀的软件设计不仅需要编写满足所选语言语法或设计范式结构约束的定义,还涉及维护对系统行为的各种期望:语义期望。这些期望可能不仅适用于代码层面,也适用于更抽象的系统结构,如软件架构。此类高层设计范式提供了组件或其他构造的词汇表及其组合方式,但并非所有可表达的设计都是格式良好的,且格式良好的设计也可能无法满足该范式的期望。遗憾的是,这些期望通常是隐式的或仅以非正式方式记录,因此发现它们已具挑战性,更不用说维护了。例如,它们可能要求正确使用复杂结构、内部一致性、符合外部标准、遵循设计原则等。此外,维护这些期望的设计决策原因往往未在代码或系统的其他表示中明确说明。我引入了“设计义务”的概念,即给定设计范式内对允许设计的约束,有助于确保范式的正确使用。为说明这一想法,我讨论了两种范式的设计义务:数据抽象和一类基于反馈控制的自适应系统。

英文摘要:

Producing a good software design involves not only writing a definition that satisfies the syntax of the chosen language or structural constraints of a design paradigm. It also involves upholding a variety of expectations about the behavior of the system: the semantic expectations. These expectations may apply not only at the code level, but also to more abstract system structures such as software architectures. Such high-level design paradigms provide a vocabulary of components or other constructs and ways to compose those constructs, but not all expressible designs are well-formed, and even well-formed designs may fail to satisfy the expectations of the paradigm. Unfortunately, these expectations are often implicit or documented only informally, so they are challenging to discover, let alone uphold. They may for example, require correct use of complex structures, internal consistency, compliance with external standards, adherence with design principles, etc. Further, the reasons for design decisions that uphold these expectations are often not explicit in the code or other representation of the system. I introduce the idea of 'design obligations', which are constraints on allowable designs within a given design paradigm that help to assure appropriate use of the paradigm. To illustrate this idea, I discuss design obligations for two paradigms: data abstraction and a class of adaptive based on feedback control.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑