Componentization & Modularization

How to distinguish between componentization and modularization?

1. Components are mostly semi-finished products (or even code snippets), which emphasizes reuse. Generally used as the bottom layer of the framework. Strong independence for module use.

2. Most modules are encapsulated by designated service codes. It can run independently, divided by interface or function granularity. Generally used as the business layer of the framework. Communicate through interfaces and other means. The purpose is to reduce business coupling.

3. Example: a login UI interface can be presented as a login module, and the login module is composed of buttons, input boxes and other components (it can also be one).

4. The two are usually presented together, one is called component\module. Multiple becomes component\modular

Guess you like

Origin blog.csdn.net/u010436133/article/details/108984526