Pair programming experience end

First, the needs analysis:

1. Provide SMS verification code registration function;

2.ui interface development:

Fill in the phone number and password after successful registration can be landed;

First, there is the difficulty of high school at elementary and junior high school selection interface after landing, while the need for a given number of topics;

According to the requirements of individual projects immediately given topic, each page a title, each title four options;

It will automatically give the final score after finishing all the topics;

After obtaining the user can choose to continue to make the score title or cancellation of the account;

3. On the basis of personal computing project code reuse is the correct answer on the subject and setting options;

Second, the design ideas:

The program can be seen as a front and rear end joint development of small projects, part of the back-end code reuse, and front-end development because previously unfamiliar with, so the focus is to develop ui interface design.

Third, the function realization

1. Front: front-end responsible partner, the general task is to use swing layout, controls, and the corresponding event listener;

2. Rear:

Design ideas:

At first I was ready at the same time the output expression of the expression simplified to only arithmetic expressions and the other with an array of preservation, to merge in number to the number of cycles by sequentially calculated the final result, but the actual the preparation process is too jumbled;

The following is the final thought:

(For our common expressions, called infix expression, each infix expression has a corresponding postfix expression such as:

Infix expression: -10 * (10 + 5/3) +6

Postfix expression: -101 053 / + * 46+

And when parsing postfix notation, you only need to observe the following principles:

l left to right traverse

l Digital encountered directly into the container

l encountered operator, by a single digital binocular last taken out takes the operation result into the container

After traversing the end l is the number of containers calculation results)

While output expression of the expression simplified to only arithmetic expression of this idea the same, but the results in the form of postfix expression is stored in the stack, a total of operators and operands stack, stack two stacks;

After getting the answer, the answer to this as a benchmark, generate a few figures close to the answer as different options for the use of a random number, then count the number of all the problems right options and the corresponding statistical results (percentage, percentile).

Code reuse:

In addition to generating the subject, other than the code options and results can be multiplexed, the expression can be further simplified to save the str variable used while generating the expression;

Creating and related computing stack with other class implementation;

 

 Main function from the multiplexing, the other two are string parsing tools evaluated included two classes;

Third, the project summary :

The project more difficult, not only in the realization of the demand, the more important is the junction with the programming of the two men. How part of who did what, front-end back-end interface, docking, front-end back-end needs to provide what, and what returns. In such a scenario develop communication and together we can write software requirements document, together unity and improve code style. It is also important thing is to keep a certain level of consistency walking, in order to know to do every part of his teammates and is expected to achieve the expected match. If the parties can not with the tacit understanding, then both sides of the design is likely there will be problems in consolidation.

 

Guess you like

Origin www.cnblogs.com/12-34/p/11600484.html