No. 189 Habits

Xu Qiping is a little transparent in the 0201 class of Wuping No. 1 High School, and she is still a little transparent in the senior year of high school after repeating a year. Xu Qiping was not born with such a character, she was also sunny and lively in junior high school.

Xu Qiping had excellent academic performance in junior high school, and was often treated differently by teachers of various subjects, and enjoyed all kinds of excellent student treatment that she was accustomed to as it should be.

Xu Qiping came to Wuping No. 1 High School with the top 100 high school entrance examination results in the county, was assigned to the experimental class, failed to compete with other top students, and hovered at the bottom of the class for many years.

Xu Qiping couldn't bear this gap, and slowly became more and more taciturn, and her personality became more and more withdrawn.

Now that she has come to Panyang Normal University, Xu Qiping has found confidence in her classmates, and she has gradually become cheerful again.

No. 189 habit

Wei Dongsheng sighed at the different fate trajectories of his past and present lives, and took advantage of the gap before the lecture to greet the two of them simply: "Xu Qiping, Qiao Yihui, you have also come to Panyang Normal University." ”

Qiao Yihui didn't expect Wei Dongsheng to say his name casually, and he almost stood up on the spot with excitement.

Xu Qiping's emotions were even more out of control, her right hand clenched Ran Qianqian's arm violently, and one surprise after another echoed in her mind: "Wei Dongsheng actually knows my name." ”

Xu Qiping is a little transparent in the 0201 class of Wuping No. 1 High School, and she is still a little transparent in the senior year of high school after repeating a year. Xu Qiping was not born with such a character, she was also sunny and lively in junior high school. Xu Qiping had excellent academic performance in junior high school, and was often treated differently by teachers of various subjects, and enjoyed all kinds of excellent student treatment that she was accustomed to as it should be. Xu Qiping came to Wuping No. 1 High School with the top 100 high school entrance examination results in the county, was assigned to the experimental class, failed to compete with other top students, and hovered at the bottom of the class for many years. Xu Qiping couldn't bear this gap, and slowly became more and more taciturn, and her personality became more and more withdrawn. Now that she has come to Panyang Normal University, Xu Qiping has found confidence in her classmates, and she has gradually become cheerful again.

The more inferior you are, the more you crave the attention of others.

In Xu Qiping's eyes, Wei Dongsheng and her are people of two worlds, Wei Dongsheng flies in the sky, and she climbs on the ground. And now, Wei Dongsheng, who was flying in the sky, not only noticed Xu Qiping crawling on the ground, but also called out Xu Qiping's name more accurately, which made Xu Qiping not excited.

Wei Dongsheng's greetings surprised Xu Qiping and Qiao Yihui to the point of overturning.

This is the status bonus.

If Wei Dongsheng was just an ordinary student, Xu Qiping and Qiao Yihui might be surprised that Wei Dongsheng knew them, but they would definitely not be surprised to this extent.

Different people will have different meanings for the same thing.

Wei Dongsheng had no intention of chatting with Qiao Yihui and Xu Qiping, so he ended his greetings in a few words and started the lecture: "There are no rules, there is no circle, let's talk about my classroom discipline before lecturing." This class is not compulsory, if any student thinks that my lecture is not good or the content is not pleasant, do not affect the students who are willing to continue listening to the class, please leave quietly through the back door. ”

The students were surprised that Wei Dongsheng was straight to the point, and occasionally there was a chuckle.

Wei Dongsheng stood in front of the podium and said with a smile: "At the beginning of making online games, I explained this concept over and over again: aim at target users and serve target users. Don't expect everyone to accept your product, and don't expect everyone to be satisfied with your product, because that's not possible. God, who claims to be omniscient and omnipotent, cannot satisfy everyone. ”

When Wei Dongsheng said this, he looked at the students with a smile: "Do you know why?" ”

The atmosphere has not yet been lifted, and no students actively cooperate with Wei Dongsheng.

Wei Dongsheng paused for two or three seconds, and then asked himself: "Because I am an atheist." ”

Wei Dongsheng spread his hands: "If God shows me miracles again, I will only study where his miracles come from, rather than simply worship and convince me." See, God the Almighty cannot satisfy me, so how can I make everyone accept my product and my philosophy? ”

The students burst into laughter.

Wei Dongsheng extended on the topic: "There is nothing in this world that can satisfy everyone. Can anyone give a counter-example? ”

After two or three seconds of silence, a voice sounded in the corner of the classroom: "Money! ”

Wei Dongsheng replied: "Money can communicate with the gods, which is indeed extraordinary. In this world, there are 99.99% of the difficulties that can be solved with money, but don't forget, there are still 0.01% of the difficulties that money can't do. For example, if a high-ranking official with cancer is very rich, he must want to be healthy, not more money. Therefore, the way to do things is to give up the big and comprehensive goal and target a certain range of user groups. This is the same with my lesson, if you are willing to listen, we will discuss it together, if you don't want to listen, please leave silently, don't expect me to be able to change from what you hate to what you like in 30 minutes. ”

After the opening remarks, Wei Dongsheng summarized the main content of the class: "Students who want to listen to the professional content are probably disappointed, because today I am not going to talk about cutting-edge technology, nor am I going to talk about how to start a business and save the first pot of gold." ”

"What are you talking about?"

"Habit."

"Habits here refer to behaviors that are gradually developed and not easily changed."

The class buzzed, and the students were visibly disappointed, thinking that Wei Dongsheng wanted to pour their clichΓ© chicken soup.

Wei Dongsheng ignored the disappointment of the students and continued to lecture: "All of you here are students from the School of Information Science and Technology, and I am also a student from the Computer Science and Technology major. ”

"When the second year started to learn C language, Panyang Normal University once caused a small storm because of the abandonment of Tan Haoqiang's C language programming textbook. In recent months, more and more people have hacked Tan Haoqiang's C language textbook on the Internet, saying that it is wrong to calculate by hundreds. There is a bookseller who wants to promote his book through black other C language textbooks, but his book is not much better. Of course, flies don't bite seamless eggs, and Tan Haoqiang's C language textbook does have many problems, otherwise Panyang Normal University would not abandon it. ”

The students, who were still a little disappointed just now, suddenly sat up straight one by one.

Wei Dongsheng is going to be black Tan Haoqiang!

Different people will have different meanings for the same thing. It is one thing for netizens to complain about Tan Haoqiang's C language textbooks in four-dimensional space and other positions, and it is another thing for celebrities like Wei Dongsheng to belittle Tan Haoqiang's C language textbooks in public. If the news spreads, a group of reporters will definitely come to watch the tearing between Wei Dongsheng and Tan Haoqiang.

It's a pity that Wei Dongsheng didn't let the good deeds get his wish, and immediately ended his complaint: "Since ancient times, it has been said that it is easier said than done, I can see the problem, but I can't solve the problem, after all, I am not good at editing textbooks." Therefore, let's not talk about the quality of the textbook today, but only about some of the habits. ”

Wei Dongsheng returned to the computer and typed two lines of statement:

int_a;

doube_b;

Wei Dongsheng left the computer and looked around at the students: "Do you know where the problem is?" ”

The students were at a loss.

Wei Dongsheng: "Strictly speaking, there is no problem. But if you go to the company for an interview, you don't need to meet a real person, the interviewer has already defined you as a beginner. Only beginners,Will do some a-a-b variables,Will do some pinyin and English together,One moment is yanse,One time is color。 As a programmer, you should have the most basic ethics: what you write can be quickly understood by another programmer. ”

Wei Dongsheng wrote three lines of code before returning to the computer:

a=b/2;

hile(abs(a-(b/a))>s)

{

a=0.5*(a+(b/a))οΌ›

}

Wei Dongsheng asked the students again: "Does anyone know what these three lines of code are for?" ”

The classroom was silent.

After more than ten seconds, a student hesitantly raised his hand.

Wei Dongsheng motioned for him to get up and answer, the student was a little nervous, and stammered, "It's Newton's iterative method, find the square root approximation of b." ”

Wei Dongsheng applauded: "Yes, can you talk about your ideas?" ”

The student thinks of a confusing explanation of what kind of thinking, "I am partial to the subject, partial to mathematics." In the college entrance examination, I scored 150 points in mathematics, 91 points in English, 93 points in Chinese, and 232 points in science and science. Before filling in the college entrance examination, I read an interview, you said that mathematics is the foundation of computers, and I didn't want to study pure mathematics, so I applied for the computer major in our school. I don't remember what abs is, but I'm familiar with the math, and it's obvious that such a program is an approximation of the square root of b. Extrapolating backwards from the results, I quickly remembered that ABS is ABSOLUTE. ”

Wei Dongsheng applauded again: "Very powerful mathematical thinking, are you interested in working in Spring and Autumn Software?" ”

Student: "Yes. ”

Wei Dongsheng encouraged him and said, "When this class is over, I will help you write a recommendation note." If you have time during the weekends, winter and summer vacations, you can go to Spring and Autumn Software for a part-time internship for a period of time. If the verification is not accidental, I believe that your sensitivity to mathematics will definitely shine in the Spring and Autumn Software. ”

The student was a little overwhelmed and said, "Thank you, thank you." ”

Wei Dongsheng motioned for the student to sit down and continued the lecture: "This classmate is very powerful, and he understands at a glance that these three lines of code are used to find the approximate value of the square root. However, I am stupid and I can't read at first glance and still can't understand at second glance. If I forget for a moment that abs is an integer function, I think the a, b, and s variables are related to abs. ”

"I believe that there are only a handful of talented people in mathematics, and that the future demand for programmers in the programmer community, or in the market, is in the millions and tens of millions. This volume refers specifically to the domestic market. Before the number of domestic programmers reached 10 million, the market was far from saturated, and the high-speed Internet era required countless programmers to contribute to it, and countless programmers needed to turn ethereal "ideas" into visible products. With these tens of millions of programmers, it is impossible for everyone to have the mathematical acumen to see through these three lines of code at a glance at any time. ”

"At least, I can't."

"Typing 3,000 lines of code a day is already productive; Reading 3,000 lines of code, on the other hand, is inefficient and intolerable. When we do specific work, we need to write code, and we need to read ten or even a hundred times the code, so we especially hate variables such as a, b, c, and d. When reading code, we want to know as quickly as possible which piece of code is used for what, i.e.: hat, ho, hy. ”

"However, the quality of those working in the software industry is uneven."

"Some programmers complain that fresh graduates love to write int_a code, and on the other hand, they are extremely reluctant to write necessary comments and customer service and other documents that a layman can understand. I have encountered programmers protesting more than once: 'Let someone else write a documentation manual!' However, if a programmer who doesn't want to write documentation writes a program, can I feel comfortable asking another programmer to write the documentation for him? ”

"These are very bad habits."