android-studio - android中做业务模块重用的思路?
高洛峰
高洛峰 2017-04-17 17:32:00
0
2
579

目前团队在重构项目中的论坛模块。想把论坛模块的代码拆出来,如果以后再想做一个论坛的话只需把模块引过去就行(包括后台和ios,不过本题只讨论android怎么实现。。)
目前是新建了一个Module,然后把代码移过去。再在主项目中引入Module。这样做对么?
或者说大型团队是怎么分模块开发程序的?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
Ty80

It’s difficult to provide specific suggestions, it depends on your specific business. No matter which layer is reused, you need to have a deep understanding of that layer to see what can be shared. For forums, things like user login and registration, user level growth, user permissions and grouping, well, it sounds like backend business. , so the specific business depends on how well you can package it. Good reuse must be scalable. Try not to reuse things you don’t understand. Forced reuse will only bring costs to future use and maintenance. Understanding more about design patterns will be helpful in implementing reuse.

Ty80

1. First of all, you need to consider whether the modular business can really be independent. 2. Secondly, the development of large teams should be plug-in. When the package is combined, choose the version of the corresponding module for packaging (if it reaches a certain deadline, If a certain plug-in has not been developed, just use its last released version)
3. In addition, it is necessary to consider the sinking of the basic business and being relied on by other plug-ins, such as: the information returned when logging in/registering

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template