Junction Elementary School Mathematics learning software for programming the UI with the

Pair programming summary

The junction of the programming code is modified Chengyan Bo students based made.

Individual project reuse:

       Pair programming logic directly in the topic and topic codes used in the original individual items, but on adding the result of the calculation formula code.

In adding a new pair programming section it comprises:

Login, registration, password change the password, the title is displayed, the results display interface

The results of the calculation formula and fractional statistics

And modify the settings are stored passwords

Phone code registration function

Password format, phone number availability, topics such as the number of detection range

 

And learned some lessons learned:

       interface:

javaSwing use interface, API and met a series of classes, including the use of various layouts like BorderLayout, etc., Jbutton, jPanel, JcheckBox, JFrame, JtextField and so on. Learn to write basic java Swing pages, setting various attributes, as well as jump between pages (used here is setVisible directly unnecessary pages are not displayed)

Page looks clear and concise!

       Phone code:

Ali cloud here to use SMS service, just opened when there are 100 free SMS package so it is very convenient. Ali cloud of official documents has been described in detail how to use the SMS service, and there are demo can refer to.

We have to do is apply for the service, signature, and templates, awaiting review, according to their demo which will be given as part of modifying their own content (such as AcessKey, signature templates, etc.)

This is my first time using cloud services, I feel very convenient and very magical.

There is a small lesson is that Ali cloud document's template and did not put that in the end part of the code to be modified into what to write clearly, I thought it was the name of the template on the line, and later discovered that in fact there is a template ID, this silly little mistake led me stupid to change for a long time bug.

But with the cloud services on trial experience, I feel that after learning from this area should also easier it

       About Maven project :

Ali cloud looking at the official documentation, to see written recommendation to install the Java SDK Ali cloud by adding Maven dependent manner. So he went to understand a bit Maven, he actually is a project management tool that can help us simplify the build process, make it easier to manage your files.

About Maven integration with Maven eclipse of the installation and integration of interested students can go to my another blog Maven installation and the eclipse

In short, after we learned that, I convert the project became a Maven project,

Then add the above method by Ali cloud messaging services required core library into the project, after which you can use Ali cloud messaging service it!

Password setting changes and store:

There is still using a txt file storage mode. As long as the input and output streams through BufferedReader, fileReader, fileWriter the like can be achieved txt file storage.

Change Password has some difficulty, because if positioned through a pointer txt file in a row prone to some of the unpredictable errors, so here modify the way passwords are taken directly to the entire file (all account password) read out, changes need modify the part, and then go back and re-write the entire file. In fact, this appears to have some trouble, you can have the opportunity to try to do the accounts with database management.

Read the code:

Here I have to mention the reading experience teammates code. It makes me insight into other people's code is difficult to understand how in the end. Especially in the comments still relatively few cases.

It also exposed a problem that may arise in the future of our team, it is this non-standard code and comments is not clear due to a serious decline in productivity! Can be considered for the project team a reminder of it, before you start, you had better look unified regulation code, and best writing comments where necessary.

       Regular Expressions

To test the effectiveness of passwords and phone numbers, tend to get a closer understanding of java regular expression, gain a lot, this is indeed a very good tool for working with strings is!

For example, a short line on the following formula, you can easily check whether the telephone number to meet the standards, without the need for stupid stupid to do such as conditions of use if judgment.

Overall in this pair programming in a lot of harvest

Guess you like

Origin www.cnblogs.com/yr7950969/p/11600767.html