- Expert Android Programming
- Prajyot Mainkar
- 121字
- 2021-07-08 10:29:16
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.
推薦閱讀
- FuelPHP Application Development Blueprints
- iOS 9 Game Development Essentials
- Building a Home Security System with Raspberry Pi
- Practical Internet of Things Security
- Magento 2 Theme Design(Second Edition)
- Java開發入行真功夫
- 數據結構簡明教程(第2版)微課版
- 機械工程師Python編程:入門、實戰與進階
- C語言程序設計同步訓練與上機指導(第三版)
- Swift細致入門與最佳實踐
- Integrating Facebook iOS SDK with Your Application
- Android群英傳
- Learning VMware vSphere
- Java高手是怎樣煉成的:原理、方法與實踐
- Java EE項目應用開發