在软件项目中,如何区分组件和模块? [英] 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屋!