官术网_书友最值得收藏!

Clean Architecture Pattern

The Clean Architecture Pattern, in its simplest terms, means to write a clean code, by separating it into layers, with the outer layer being your implementations and the inner layer being the business logic. An interface connects these two layers, controlling how the outer layers use the inner layers.

This kind of code architecture pattern is also known as Onion Architecture because of its different layers, as seen in the following figure:

Figure 2.2.4

The inner layers have no idea about the outer layers. The outer layer uses the components from the inner layers based upon its needs, meaning the outer layers are dependent on the business logic implementations of the inner layers. Hence, the dependency points inwards.

主站蜘蛛池模板: 藁城市| 涞源县| 南郑县| 舟山市| 益阳市| 阿荣旗| 公安县| 山丹县| 左云县| 巨野县| 中西区| 藁城市| 象山县| 平武县| 尼木县| 高阳县| 张家川| 科技| 高邮市| 长泰县| 垦利县| 樟树市| 哈巴河县| 桃江县| 桓台县| 固镇县| 巴彦淖尔市| 三河市| 秦安县| 石首市| 勃利县| 肃南| 安阳县| 城市| 南郑县| 忻州市| 建始县| 惠来县| 抚顺市| 乐平市| 共和县|