Participated in the programming competition, feeling more (1)
July 16 received documents, in the afternoon, distributed, evening discussion, analyzing the total planning and technical issues got a competition, I found it is not very difficult, and I discussed with you to start allocate for eight days and tasks. Go shopping with MM at night, I have to see it in a week. On the evening of the morning of the 14th: almost only one person is in checking the information, GMS is accompanying high school students to play, Restart is accompanying her sister to visit 18 all day -19, morning: check data solving technical problem 19 afternoon -20 Mor Mor: Certified client data structure and work mode on the afternoon - ?????????????????: Prepare the Server-end data structure and interface No. 21 evening -22 morning: Integrated test Write document 22 afternoon -22 night: Improve document, test FTP connection 23 morning -23 noon: transfer to FTP, back up the entire program, then do some additional moisters, pay attention to each step 23 The afternoon - ?????????????????: Dinner, print 2004_program_contest_agreement.doc document, signature
Participated in the programming competition, feeling much (2)
The design idea of the Client side is now, I still feel correct, multiple probes or simulator written in a queue, a sending thread is read and transmitted, using MUTEX control synchronous and mutual exclusion.
Check the information, the speed is too slow, and it isted too much time. I have been two days when I start writing Client.
File generation, modification, access, deletion, etc., process start and termination, and the monitoring of the current activity process, RESTART is responsible for the capture and analysis of network packets, and analyzes Email information (theme, sender, collecting People, attachments, etc.), GMS is responsible for the acquisition of CPU occupation information and writing of Client Sending Threads.
We predefined interfaces, global variables, and formats, and then discovered that these were not enough, but also controlled version, the update submission of the control file, and strengthen communication (this due to RESTART and two of us, there have been many problems)
The Server end and the client end are finally written in the final way. This is the most influential project progress actually in the time of half. Later, many network sent and received issues were discovered, as well as many memory leaks found when they do memory management. In the middle, I have encountered a strange question: the machine response is very slow, the task manager shows that the CPU usage is only 11%, while the memory consumption is only about 220m, but after I kill the client process, the machine is relatively happy, CPU The occupancy and memory consumption have not changed. Is the task manager out of trouble?
At first, check the information should not spend so much time, the specific problem can slowly solve, do not have to wait for the damn network. I will come to the network, I don't think the Internet doesn't have anything. When I can't find it, or someone else is in the CodeProject, but there is still a dead time, but the school is secretly. The network was jealous.
? Participated in the trend programming competition, feeling much (3)
Several lessons:
1. When I have learned C , I don't think there is a pure virtual function. Think about it to provide a default implementation is not better? But when I used it, I found out the problem. GMS defines a getSIZE () method to return the actual size of the structure (including the pointer content inside), define a getType returns its content and let GetSize return to 0, getType defaults to 1. Since the Restart contact is inconvenient, the result of Restart writes NetWorkPacket and Email two subclasses have not been achieved, and the decumb has taken two people for 4-5 hours per person. 2, version control: Due to the night of the night, the three people are brain, and the result is a number of versions, and two people are changing. At the end, everyone thinks that the BUG of their part has been corrected. As a result, it was overwritten after another generation of new versions. However, IGLOO is really simply, and Eclipse or WinCVS is not worth it.
3. Detailed design documentation: When the drawing is, don't think about how to paint, start writing the code, finally painting a mess. Moreover, the display module has been restricted by the MFC framework. It is not specifically taken with a thread, causing the code logic confusion. It is also possible to divide data storage and processing, otherwise it will not be cleaned.