An email from many years ago

EmailI was sorting out the emails last night, and I read such an email. It came from my teacher Guo Jun, who used to teach me the COP (Component Oriented Programming) course. The beginning and end of this email is like this. Mr. Guo mentioned a question in class. It seems to be a simple question now. For a given n, only one layer of loop is required to print such asterisks ( In the following example n=3):

   *
  ***
*****
  ***
   *

Because only one layer of loop can be used, it was implemented like this at the time:

int n=3;
int row,col,mid;
for ( int i=1;i<=(2*n-1)*(2*n);i++){
     row = i/(2*n)+1;
     col = i-(row-1)*(2*n);
     row>n?mid=row-n:mid=n-row; //相对于中间行恒正的行偏移量
     if (!(i%(2*n)))
         printf ( "\n" );
     else if (col>mid && col<n*2-mid)
         printf ( "*" );
     else
         printf ( " " );
}

Now it seems that the problem is not a big deal, but for me at the time, I wrote down the problem in my mind during the class and thought it could be solved. After the class was completed, I sent it to Teacher Guo Jun. Unexpectedly, he replied to me an email, the email said:

Sender: Jun Guo
Send Time: 09:14, September 8
To: Ray Chase
Subject: Reply: Asterisk topic one layer loop my method

very good!
For mediocre developers, this is a difficult problem. For good developers, this is too easy.
I hope you can always maintain a humble, progressive and enterprising heart, and be able to cooperate happily with others and make a career (not necessarily a big one, but it must be meaningful).
Guo Jun

The email was very simple, but it was still a great encouragement to me at the time. After work, I found that insisting on my dream is undoubtedly hard and lonely. A small email can really change a person.

The significance of being a teacher is to preach, teach, and solve doubts, but the difficulty of being a teacher is that this profession is too easy to exert an influence on students, no matter what kind of influence it is. As the so-called intentionally planted flowers will not bloom, unintentionally planted willows and willows make shade, those stories in the classroom may not be remembered too much, but some subtle actions can have a long-term impact on students. Therefore, for those exceptional teachers, there is no need to worry too much about his teaching in class. It is better to see how he affects students after class and in his spare time .

On the contrary, many talented people, experts, and consultants are only interested in their own small circles, and they are enthusiastic about the same well-known people and actively interact with them, but they are not interested in some friends with less seniority and ordinary status, and treat them coldly. Otherwise, they put on an old-fashioned look for their letters and remarks, full of strength and disdain in their words and deeds. Maybe this is a common problem in this industry?

On the other hand, many programmers who are not deeply involved in the software industry feel ashamed and laugh at themselves as code farmers. But China's Internet environment, after all, depends on them to save, not the "successful people" who show off their achievements and stories. I think it is the interest in software that has cultivated so many people. If these less confident programmers are given a more relaxed and supportive environment, they will make more valuable things. Teachers are irreplaceable. I hope that when the time is right, I can also do my part.

Teacher's Day is coming soon, I wish all teachers in the world a happy holiday.

The article is original, please indicate the author and source for reprinting


Note: This blog has been migrated to the personal site 
http://www.raychase.net/  , you are welcome to visit the collection, this ITEye blog will not be updated in a few days.