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

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.

主站蜘蛛池模板: 晋城| 宁波市| 北票市| 沈丘县| 南康市| 刚察县| 柳江县| 安泽县| 浙江省| 枞阳县| 济南市| 绥阳县| 集贤县| 汝阳县| 呈贡县| 阳城县| 南郑县| 黄大仙区| 宁晋县| 卢氏县| 盐亭县| 石棉县| 噶尔县| 凤城市| 慈溪市| 观塘区| 礼泉县| 绿春县| 盐亭县| 涡阳县| 安徽省| 斗六市| 界首市| 鲜城| 杂多县| 仁化县| 五常市| 温宿县| 错那县| 武平县| 泸水县|