Develop an app from scratch and think of

Source: Internet
Author: User

I have seen this problem http://www.zhihu.com/question/27645587 on the understanding. After reading the answers from Daniel, and then adding my own thoughts, I have the content of this article.

Develop an app from scratch to do these things: 1. Determine the encoding specification---the Code Style. This can be directly referenced by the specification Https://google-styleguide.googlecode.com/svn/trunk/javaguide.html#s5.3-camel-case 2. resource file naming rules, You can refer to this resourcce to do https://github.com/futurice/android-best-practices 3. To divide the module (model) for the entire application, then, Consider what schema mode to use for the app module, using the MVP mode (activity is only treated as a view, logical code in presenter), or using the MVVM pattern. This is good, with the following benefits, such as we use MVP mode: 1. The code has good readability, at least you don't see a lot of logic code in the activity, business-related code. 2. The code is organized in one way. Equivalent to having a management rule in play that won't let you mess up. 4. At the outset, you can use commonly used frameworks to improve productivity. Dagger relies on the injection framework, which can have. Butterknife frame, can have without writing a lot of Findviewbyid. Ormlite can have, the Android ORM Framework, can do, a class, map to a database table, update and query the data table without writing SQL code. RxJAVA, responsive programming framework, this can have, do not write a lot of handler, you can also practice the idea of functional programming. 5. What about automated testing? Leave this blank.

Develop an app from scratch and think of

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.