- NativeScript for Angular Mobile Development
- Nathan Walker Nathanael J. Anderson
- 258字
- 2021-07-02 18:41:46
The module benefits
Using a similar organization provides several advantageous things for you and your team:
- High degree of usability: By designing a low-level CoreModule, you and your team have the opportunity to design how you like to work with commonly used services, in a unique way, across not only the app you are building now but more in the future. You can easily move CoreModule into a completely different app and gain all the same unique APIs you have designed for this app when working with low-level services.
- Viewing your own app code as a 'Feature Module': Doing so will help you focus on just the unique abilities your app should provide outside of what the CoreModule provides as well as reduce the duplication of the code.
- Encourages and enhances rapid development: By confining commonly used functionality to our CoreModule, we relieve the burden of having to worry about those details in our feature modules. We can simply inject those services provided by our CoreModule and use those APIs and never repeat ourselves.
- Maintainability: In the future, if an underlying detail needs to change because of how your app needs to work with a low-level service, it need only be changed in one place (in the CoreModule service) versus having redundant code potentially spread across different sections of your app.
- Performance: Splitting your app into modules will allow you to load only the modules you need at startup, then later, lazily load other features on demand. Ultimately, this leads to a faster app startup time.
推薦閱讀
- HTML5移動Web開發技術
- Python快樂編程:人工智能深度學習基礎
- Debian 7:System Administration Best Practices
- 編寫整潔的Python代碼(第2版)
- Visual Basic程序設計教程
- 程序設計基礎教程:C語言
- SQL基礎教程(第2版)
- PHP+Ajax+jQuery網站開發項目式教程
- Java語言程序設計教程
- Learning AWS
- Learning Material Design
- Java圖像處理:基于OpenCV與JVM
- Extending Unity with Editor Scripting
- App Inventor 2 Essentials
- Mastering SciPy