Chapter 117 Programming Languages
The door of the office was open, and Wu Bin walked in directly.
"Hello Mr. Huang......"
Huang Zhenrong heard that he was looking for himself, so he operated the mouse twice, turned his head and glanced at Wu Bin, "Looking for me?" ”
"Yes." Wu Bin nodded, "I want to ask the teacher about the C language." ”
"Thank you."
"Good fight."
“BOOM~”
With an explosive sound coming out of the computer, Huang Zhenrong closed the game, and Huang Zhenrong took out a box of mints from his pocket and poured a pill into his mouth.
"Oh, who told you I'm going to do this?"
"My classmates told me that I wanted to learn C language, so I just came to you." Wu Bin pointed to the computer again, "Teacher, you just killed quite quickly." ”
"Hahahaha!" Huang Zhenrong let out a burst of laughter, "It's okay, Wu Bin, you can talk in the third year of high school." ”
In the first and second years of high school, there was still a physical education class in the third class, and at that time, Wu Bin was one of the best in the third class because of his physical fitness, so he was often taken out by Huang Zhenrong to do demonstration actions, and the two were very impressed with each other.
"I've always admired my teacher."
Wu Bin's sentence is not a lie, this Teacher Huang can definitely be regarded as a powerful physical education teacher in Xiazhong, get serious, 11, 2 pull-ups can also be done, and the upper limbs are strong.
"Ouch, the genius speaks to me." Huang Zhenrong stood up and patted Wu Bin on the shoulder, "You kid is now a man of the year in the school, the first in the grade, and the one participating in the competition, I heard that your photo will be posted at the school gate in two days?" ”
"Huh!?" Wu Bin looked confused, "I really haven't heard of this." ”
"Ouch, then I spoiled it in advance, haha." After laughing twice, Huang Zhenrong finally brought the topic back, "You said you want to ask me about C language?" ”
"Well, I've just started learning recently." Wu Bin nodded.
"It depends on why you want to learn C." Huang Zhenrong sat back down in front of the computer after speaking, "If you are just interested in programming and want to play some bells and whistles, then I recommend you to start with a programming language like Python or PHP, as long as you learn it for a week or two, you can make something fun." ”
Looking at Wu Bin's confused appearance, Huang Zhenrong shook his head, "You are really a pure novice, then you come to me, I can indeed teach you something." ”
"Listen, my personal opinion, python is a programming language that has many benefits, it is simple, easy to learn, fast, and goal-oriented, which is to let you focus on solving problems rather than figuring out the language itself, and it is arguably one of the most popular programming languages in recent years."
"Then why did my friend recommend me to learn C, and said it was the general trend?" Wu Bin asked strangely.
"Because C language is the most basic thing, when you go to college and take information courses, C language is compulsory, but it is too boring compared to python."
Saying that, Huang Zhenrong opened an application box on the computer, "Python comes with its own equipment, and the reason why it is suitable for use is largely due to its rich third-party libraries. ”
"What about C?" Huang Zhenrong opened a black box again, "Its introductory tutorial only introduces from beginning to end, that is, compiling preprocessing commands, but can you expect a black box under DOS to show off the sky?" ”
"So you're learning python, teacher?"
"Me?" Huang Zhenrong pointed to himself, "I'm just a hobbyist, and I've watched it all if I'm interested, anyway, if I explain the difference to you clearly, I can still do it." ”
"First of all, you have to establish the idea that any programming language is used to develop programs and make computers do the work, such as downloading an MP3, writing a document, and so on." Huang Zhenrong glanced at Wu Bin as he spoke: "0 and 1 know, right?" ”
Wu Bin nodded.
In the foundation of his learning, he taught that the computer can basically understand digital signals, that is, a string of numbers composed of 0 and 1, as for which instructions to correspond to a bunch of 0s and 1s, it is all decided by the hardware manufacturer.
The kind of X86, ARM, and AI-64 that you may have seen are all architectures with a certain instruction set.
Seeing Wu Bin nodding, Huang Zhenrong continued: "Then you know that the CPU that works on the computer only knows the machine instructions, so well, although different programming languages are very different, they all have to be 'translated' into machine instructions that the CPU can execute." And different programming languages, doing the same job, the amount of code written, there is also a big difference. ”
"For example, to complete the same task, C needs to write 1,000 lines of code, Java only needs to write 100 lines, and Python may only need 20 lines." Huang Zhenrong glanced at Wu Bin again, "Java still knows." ”
"Know, know." Wu Bin nodded immediately.
"Huh~ It sounds like it's very comfortable if it's Python, but there is a price to pay for less code, that is, the running speed will be slow, C programs run for one second, Java programs may take 2 seconds, and Python programs may take 10 seconds."
Wu Bin nodded as he listened, his eyes constantly shining with excitement, because it sounded really complicated, and there was a lot to learn!
After telling Wu Bin about the differences between many programming languages, Huang Zhenrong ate another mint candy and concluded: "In short, I haven't learned much, but in terms of my personal experience, as well as the summary of the bigwigs I saw on the forum, C language is Shaolin Changquan, Python, java, PHP, this is the sword technique to ward off evil spirits." ”
"What do you mean?" Wu Bin asked curiously.
"You learn Shaolin Changquan for a month, what can you perform? Show someone else to prick the horse for an afternoon and then land a right hook? But you don't need to know the bottom layer of the evil sword technique, you can get started quickly without basic skills, and after learning for a month, wow, the performance is sword energy! There are bells and whistles, and the show is not good. ”
Huang Zhenrong made an exaggerated gesture twice as he spoke, "But practice the evil sword technique, if you are not clear about the direction of the true qi in your body, if you deviate a little, you will go crazy, and if there is any dragon slashing sword technique in the martial arts, and the sky-covering sword technique, you can only sigh, scold the mother, and dye and finish to join the team competing for the cheats, otherwise you can only become a stepping stone in the back." ”
"And the C language, just to let you know what it is like to not have a single meridian in your body, and what is the direction of the convergence of true qi, this is actually really boring, especially when you learn with others, your junior brother has learned to be able to use Python to guide the country, and he will release sword qi next to you at every turn, you are still there Zama, can you stay up?"
"And what if I survive?" Wu Bin asked expectantly.
"Survived? Then you believe me, don't say what it is "Evil Warding Sword Technique", as long as you are interested, you can create a set of 38 palms of dragon descending and 12 veins of divine sword, and then you can sigh in front of those who practice evil sword art. ”
"The world's martial arts are really out of Shaolin!"