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

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.

主站蜘蛛池模板: 新巴尔虎左旗| 衡水市| 兴安县| 绍兴市| 沙湾县| 仙居县| 武清区| 会泽县| 十堰市| 扶余县| 洪洞县| 贵南县| 松潘县| 无锡市| 湘西| 信宜市| 东辽县| 和平县| 马边| 福安市| 阳曲县| 天门市| 南涧| 上饶县| 叶城县| 岫岩| 桦甸市| 理塘县| 潼关县| 文安县| 阿尔山市| 腾冲县| 罗甸县| 景洪市| 河西区| 剑阁县| 内江市| 垫江县| 瑞丽市| 广南县| 天镇县|