在软件项目中,您如何区分组件和模块? [英] In a software project, how would you differentiate a Component from a Module?
问题描述
在软件中,您如何区分组件和模块?
In a software, how would you differentiate a Component from a Module?
推荐答案
我会说答案取决于你问谁.
I would say that the answer depends on who you ask.
我认为差异是粒度和角色之一.我理解的软件组件是一个自包含的实体,具有定义良好(最好是稳定)的接口,可以与系统的其余部分交互,并且从系统架构的角度来看具有重要意义.一个例子是数据访问抽象层.
I think of the difference as being one of granularity and role. A software component to my understanding is a self-contained entity with a well-defined (and preferrably stable) interface that interacts with the remaining parts of a system, and which has significant meaning from a system architecture point of view. An example would be a data access abstraction layer.
对我来说,一个模块宁愿是一个可部署的源代码包,其中包含具有共同目的但在系统中不发挥任何重要作用的代码(这意味着替换它不需要更改系统的整体架构).一个示例是 Web 服务中的 JSON 序列化程序.
A module to me would rather be a deployable source code bundle containing code which shares a common purpose, but doesn't perform any significant role in the system (which means replacing it would not require changes to the system's overall architecture). An example would be a JSON serializer in a web service.
这篇关于在软件项目中,您如何区分组件和模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!