- 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.
推薦閱讀
- 深入理解Android(卷I)
- Node.js Design Patterns
- OpenShift開發指南(原書第2版)
- Mastering OpenCV Android Application Programming
- Learning Selenium Testing Tools with Python
- Learning RxJava
- Web交互界面設計與制作(微課版)
- INSTANT Weka How-to
- PySide GUI Application Development(Second Edition)
- Spring Boot Cookbook
- Getting Started with NativeScript
- C語言程序設計
- Getting Started with Gulp
- Red Hat Enterprise Linux Troubleshooting Guide
- Django 5企業級Web應用開發實戰(視頻教學版)