如何理解模块化?
我想知道您如何理解软件中的模块化,尤其是 Web 开发中的模块化?
I'd like to know how you understand modularization in software, especially in web development?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自模块化:
简而言之,它是关于设计或查看由组件或模块组成的系统。就是这样。
请注意,该术语并不意味着系统被设计为模块的组合,也不意味着应该努力最小化模块化以制作单个紧密耦合的软件。
尽管如此,在实践中,当人们谈论软件模块化时,通常会建议尝试将系统拆分为许多松散互连的模块(松耦合原则)。这通常有助于实现可重用性,并限制一个模块中所做的更改超出其边界的传播,并对其他模块产生重大影响。
From Modularity:
In a nutshell, it's about designing or seeing a system as composed of components or modules. That's it.
Notice that the term does not suggest a system be designed as a composition of modules, nor does it imply it should be strived to minimize modularization to make a single tightly-coupled piece of software.
Still, in practice, when one is talking about modularization in software, one is usually suggesting to attempt to split the system into many loosely interconnected modules (the Loose coupling principle). This often helps to achieve reusability and to limit propagation of changes done in one module over its borders and have significant impact on the other modules.