Knot pairs & Word Frequency statistics

Source: Internet
Author: User

Pair programming

Pathner Cheng Lin (blog: http://www.cnblogs.com/charliePU/)

1. Word Frequency statistics

Environmental dependencies:

    • Development environment. MyEclipse, Jdk1.7.0_04, Echart.mini.js, Tomcat 7.0.
    • Operating environment. Tomcat 7.0, Jre7.

A further discussion on the requirement of Cheng Lin frequency statistics

OK input: TXT format plain English document size not exceeding 10M

Sorting of analysis results: outputs the first n of the output sequentially

Results display content: Display content on the original basis to increase the sorting results display, add the article title display, modify the horizontal axis to oblique 60°, consider adding a percentage

Database: Verify that no database is used (simple online statistics)

Overall system function: The total number of words in the English documents submitted by users online is counted, and the number of occurrences of each word is counted to render the result in the form of a chart (histogram).

1. Uploading Documents

2. Statistics of all words (the plural form is temporarily recognized as a separate word, abbreviated form is not supported)

3. Total number of rows in the statistical document.

4. Number of occurrences of adjacent two words in a statistical document (phrase frequency analysis in simple sense)

5. Sort by the number of word frequency from large to small

6. The chart shows the data.

Project git address: https://github.com/puchenglin/WordFrequencyStatisticSys.git

2. Pairing experience

In the process of improving the word frequency statistics for Pathner Cheng Lin, he first told me the whole process of the code and then showed me the program, and then I looked at his code and asked him some specific things.

We discussed the overall requirements of his system in the first place and then added some new content to adjust the code.

Throughout the process, we talk about our ideas and talk about communication, and then we make code changes after the final confirmation.

Code review process, the specific implementation of some differences, feeling change is not big, but there are a lot of small problems in the middle of delay some time.

Experience:

In the past we have discussed a lot of problems in their programming, but because do not know the specific content often can not be poked in the main points, but have to say, when you encounter problems and irritability, to find a person to exchange problems, even if unable to get a solution, will make their thinking change.

Pair programming can be the two sides urge each other, when a person works another person can act as a program ape encouragement teacher

Because of the different programming habits, the code looks a bit messy (specification is very important AH)

Think of the angle of the problem of different problems to think of the solution is not the same, a number of ways to survive the way.

A person to work alone thinking, take turns, so that the body is not very tired

There is a little trouble finding the cause after the error (looking at someone else's code is not a simple thing: The specification is really important)

Knot pairs & Word Frequency statistics

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.