"Sprat" of the design pattern

Source: Internet
Author: User

For last week's teacher evaluation of the situation, in yesterday's senior sister gave us a report. After listening to this report, I felt very deep feeling.

Cause

Because our school every year to hold the teacher evaluation of teaching activities, and basically every school used by the system is from the accelerated, so, this time we accelerated also smoothly Cheng Zhang took over this glorious mission, in brother Siang the careful arrangement under the system is also "smooth sailing" to make, After a few tests after the people did not find any problems, and then put into the teacher evaluation of the use of.

Perhaps it is Providence, I was "lucky" arrangement to the Sunday tour of the teaching, this day we on duty personnel early half an hour to the evaluation of the teaching site, after everything is ready, began the evaluation of teaching activities, just started to not many people, all in control, but with more and more students to evaluate the teaching, The discovery begins to appear that comments cannot be submitted, or the Web page does not open the phenomenon over time. This phenomenon is also more and more serious, students more and more, gathered at the door more and more people, in order to take into account the safety of students, we put a part of the students to the computer room, but the computer room and other students are more and more. Brother Siang is also very nervous, they tried a lot of methods, time a minute, blink of an eye 2 hours passed, there are a lot of classmates also asked us how the matter, we can only explain briefly, but also some students began to rush our temper ... Blame us ... Of course, as students, we do not understand how they feel at this moment. Slowly the noise in the room is getting bigger, the scene is more and more chaotic, after communicating with the teacher, the teacher decided to end the evaluation of the teaching, so things are finally over temporarily.

After

At yesterday's meeting, first by Brother Siang to introduce us to the situation at the time, then, by the river Brother Siang give us a brief explanation of the use of technology, as well as some of the key words: high concurrency, Big data, gathering lock, etc. and through the analysis of software data, we restore the image of the system in the process of the computer's internal response; Finally, rice teacher also to the process of the matter and the consequences of the supplement: the Evaluation of the teaching system problems, resulting in students can not enter the computer room evaluation of teaching, resulting in the outside of the students can't come in, Inside the students out of the phenomenon, may eventually lead to the students of the phenomenon of personal harm.

Feel

After the assessment, testing and the experience of the first time, I and some students feel that the hardware conditions on the server is out of the question. But with this report, it feels like brother Siang is highlighting the problem of code optimization, which is about our key figure "Design patterns".

Before I always do not understand the role of design patterns, perhaps the previous process in the mischief it, the total feeling of design mode is too troublesome, there is no process-oriented simple also understand, why should be so superfluous? But now I am deeply aware of its importance, the key role of design mode is to optimize the code, is underestimated this small optimization, it can solve a lot of unnecessary trouble for the CPU, make the CPU run efficiently, avoid deadlock and sacrifice.

To tell the truth, I listened to the teacher's explanation is really eating a surprise, did not think it is just this small system may also lead to the tragedy of life security. From the teacher's humorous and witty narration, I can faint feel the pressure on the teacher's back. This reminds me of a tragedy in American space: because the technical staff added a small number of points, causing the rocket to fire off the ground shortly after the explosion, while the astronauts were burned alive in the rocket, the more tragic is that his family can only and everyone helplessly watching their husband burned to death and helpless!

Summarize

After this thing I deeply recognized, but also personally understand the importance of design patterns. Of course, from the brother Siang of the body to learn a lot of responsibility and spirit!

"Sprat" of the design pattern

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.