Let's go...

Source: Internet
Author: User

Whether it is outsourcing or making its own products, app development is the most critical and speed.

There are many reasons, but the most important thing is that this thing looks very small, so it won't take long to do it.

1. Solve naming problems

Naming is very important. The quality of naming determines whether you can write beautiful code.

Take address as an example. It has several common attributes.

Isselected
Povince
Country
Phone
Name
Detail
Area
City

Note! It is more elegant to arrange by length.

Once the name of the address attribute is determined, the view and Controller related to the address attribute cannot contain any ambiguous names.

For example, subaddress and phonenumber.


2. Write Network Interfaces

The order in which network interfaces are designed must be created first and then obtained.

Take address as an Example

-(Void) addaddress failed :( basicblock) failed complemented :( basicblock) complemented;

-(Void) downloadaddresses failed :( basicblock) failed complemented :( basicblock) complemented;

Note! Failed is always before complemented.

In addition, you should write a local interface instead of putting local data into the network interface.

-(Void) addaddress;
-(Void) loadaddresses;


3. simulate local data

The data must be close to the truth, which is helpful for further checking the model design and demo effect.


4. Solve the parameter passing Problem

In the process of designing the network interface, the parameters required for each interface should be determined based on the background design.


At this time, the model is basically completed, isn't it great?

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.