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?