android clean architecture
android clean architecture
Android-Kotlin-Clean-Architecture
- Maintainance of the project gets easierWhen we add more and more code to a project, the project gets more and more complicated and as a result, maintaining the project gets harder, adding new features require more time and energy and fixing bugs get cumbersome. In fact, this is not even a linear relationship but rather an exponential one! So more code equals more complexity equals more headaches!Using a modular approach greatly reduces this problem because instead of having one big project we have multiple smaller one that easier to manage.
- Modules can be reusedIf you have more than one project, it is very likely that some code is repeated between them, by using a modular approach you can write your code just once and use them as many times as you want. This will hugely decrease the development time, especially when you want to make some changes to the code.
- You write better code and better APIsWorking with modular approach forces you to think more about the code and relationship between the different parts, hence letting you write better code.
- You can take advantage of open source communityYou probably don’t want to share your whole project on the internet and even if you do that may not be very helpful to other developers but you can share the parts of your project that are more general, like the part that crops the photo or uploads files or whatever. By doing this you get all the benefits of open sourcing without exposing your project or your idea to the world.
android clean architecture sample
Author: qomg
License: 本博客所有文章除特别声明外,均采用许可协议 CC-BY-NC-4.0 转载请注明出处!