20,190,927 twinning projects programmed summary

Pair programming project: small high early math learning software with a UI

First, demand

user:

Elementary, middle and high school students.

Features:

  1. User registration function. The user's phone number, click on the registration will receive a registration code, the user can use this registration code to complete the registration;
  2. After the completion of the user registration, password prompt interface, users enter matching password twice password is successful. 6-10 password, the case must contain letters and numbers . The user can change the password when logged in , enter the correct original password, change passwords after a successful re-enter the same new password twice;
  3. After the password has been set, jump to the selection interface, display interface elementary, middle and high school three options, the user clicks after one of them , prompts the user to enter the number of items need to be generated;
  4. After the user enters the number of items, generating a paper (with a test paper can not have the same title, title all multiple choice ), interface shows most probably taking the first question and the four options, the user selects one of the four options submitted, interface displays the second question, ...... until the last question ;
  5. After the last question submitted by the interface displays the score, the score is calculated based on the percentage of correct answers ;
  6. The user can choose to quit or continue to do title score interface ;
  7. Small high math problem and asked to see the beginning of a personal project.

 

Second, on a personal project multiplexing

In doing individual project, taking into account the familiarity with C ++, using the C ++ language. This time is necessary to pair programming project UI, the second is to send codes. In "Java programming ideas" course last semester talking about the Java GUI design, also referred to the Java network programming. Later, we see Ali Cloud SMS verification code provides a Java API for C ++ without the API , and therefore his teammates after consultation decisive change Java.

 

Multiplexing difficulty?

1. The code reuse.

Since C ++ individual events do also adopted a method similar structures and classes, classes and methods section can be transplanted to Java.

2. Logical topic

In doing personal projects when there is such a question: whether or not the subject out of line with the actual situation of high school students? Junior high school generated task generally do not have a calculator to calculate the answer, such as trigonometric functions, are generally calculated specific angle. When personal project, I accidentally saw other students blog, his teammates used the "Q & A" way. Therefore, we believe exam more reasonable, so we fought "exam" topic mode.

3. Who reuse of code?

I mentioned in the individual project's blog, the higher my teammates code modularity, robustness and better, so the use of his personal project code.

Two pictures above is C ++ and Java classes teammates framework.

 

 

Third, pair programming project summary

The pair programming project uses a Java-based GUI and network programming, this is the first time I can call other interfaces to realize the function, I feel very interesting. Because of our database has just begun, and no server, it does not establish the DAL (Data Access Layer) to specifically read and write data. UI and business logic of this project is to parallel, in charge of the division by two, we were not much different environment (teammate with JDK 1.8, I use JDK 11, later replaced by 13; the purpose is to facilitate different environments old and new versions compatibility view), it also has some help on the Debug program and related modules, testing compatibility. Overall, this project encountered many problems not previously encountered, benefit.

 

Fourth, lessons learned

1. Chinese garbled code, and the program reads file

Our txt text encoding format and code used GBK default, while teammate code using UTF-8 encoding, UTF-8 can be switched to the normal display, there is distortion in the Chinese code (not comment) is not compiled by oh !

Deployment Tomcat7.0 today is because the garbage problem led to the deployment of unsuccessful! I was a JDK upgrade is the upgrade version of Eclipse. . . It will only encoding format problem. . .

There are Chinese must pay attention to coding problems!

 

Method: Select the file, right, Properties, select UTF-8.

 

 

 

2. About Version

To solve the garbage problem, why run the program on a regular teammate computer, on my computer to run it will be exceptions, my computer has joined the corresponding package ah!

After asking, the original JDK version of the problem! Computer environment teammates is JDK1.8, but my computer is JDK11! After the release of the JDK9.0 not own jaxb-api-2.3.1.jar expansion pack, causes the compiler does not pass! Join expansion pack that is, to solve the problem.

Later still have to carefully select the latest version, try to use the stable version.

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/cancerhzc/p/11600861.html