Chapter 122 Programming Languages
The office door was open, so Wu Bin walked in directly.
"Hello, Teacher Huang..."
Huang Zhenrong heard that he was looking for him, so he operated the mouse twice, turned to look at Wu Bin, "Looking for me?"
"Yes." Wu Bin nodded, "I would like to ask the teacher about C language."
"Thank you."
"Good fight."
"BOOM~"
As the computer made an explosion-like sound, Huang Zhenrong turned off the game, took out a box of mints from his pocket and poured one into his mouth.
"Oh, who told you that I can do this?"
"My classmates all told me that if they want to learn C language, I should just come to you." Wu Bin pointed at the computer again, "Teacher, you were very fast at killing just now."
"Hahahaha!" Huang Zhenrong burst out laughing, "Okay, Wu Bin, you can speak in your senior year of high school."
In the first and second years of high school, class three still had physical education classes. At that time, Wu Bin was among the best in class three in terms of physical fitness, so Huang Zhenrong often took him out to do demonstrations. The two of them had a deep impression of each other.
"I have always admired teachers."
Wu Bin's words are not a compliment. This teacher Huang is definitely considered a powerful physical education teacher in Xia Zhong. He can do 21 and 2 pull-ups very easily, and he is one of the strongest upper limbs.
"Oh, what a genius said to me is helpful." Huang Zhenrong stood up and patted Wu Bin on the shoulder, "Your boy is now a famous figure in the school. He is the first in the grade and participates in the competition. I have heard that Your photo will be posted on the school gate in two days?"
"Ah!?" Wu Bin looked confused, "I really haven't heard of this."
"Oh, I spoiled it in advance, haha." After laughing twice more, Huang Zhenrong finally brought the topic back, "You said you wanted to ask me about C language?"
"Well, I just started learning recently." Wu Bin nodded.
"It depends on why you want to learn C language." Huang Zhenrong said and sat back in front of the computer. "If you are just interested in programming and want to do something fancy, then I recommend you start with programming like Python or PHP. If you’re getting started with a language, you only need to learn it for a week or two, and you’ll be able to make something fun.”
Seeing Wu Bin's confused look, Huang Zhenrong shook his head, "You are really a novice, so if you come to me now, I can indeed teach you something."
"Listen, from my personal point of view, the python programming language has many benefits. It is simple, easy to learn, fast, and has clear goals. It allows you to focus on solving problems instead of understanding the language itself. It can be said that it is a near-term success. One of the most popular programming languages in recent years."
"Then why did my friend recommend me to learn C language and say it is the general trend?" Wu Bin asked strangely.
"Because C language is the most basic thing. When you enter university and take information courses, C language is required, but it is too boring compared to Python."
As Huang Zhenrong opened an application box on his computer, "Python comes with its own equipment. The reason why it is suitable for getting started largely comes from its rich third-party libraries. You only need to learn a little bit to get access to it." And use them and just show off.”
"What about the C language?" Huang Zhenrong opened another black box, "The introductory tutorial only introduces stdio.h from beginning to end, which is the compilation preprocessing command, but can you expect a black box under DOS to be so impressive?"
"So teacher, you are learning python?"
"Me?" Huang Zhenrong pointed at himself, "I'm just a fan. I'll read a few of those who are interested. Anyway, I can still do it if I explain the difference to you clearly."
"First of all, you have to establish a concept, that is, any programming language is used to develop programs and let the computer do work, such as downloading an MP3, writing a document, etc." Huang Zhenrong said and glanced at Wu Bin: "0 and 1 Do you know?"
Wu Bin nodded.
He was taught in the basics that computers can basically understand digital signals, which are numbers composed of a string of 0s and 1s. As for which instructions the bunch of 0s and 1s correspond to, that is all decided by the hardware manufacturer.
The X86, ARM, and AI-64 you may have seen are all based on a certain instruction set architecture.
Seeing Wu Bin nodding, Huang Zhenrong continued: "Then you know that the CPU that works on the computer only knows machine instructions. So, even though different programming languages are very different, in the end they all have to be 'translated' into something that the CPU can execute. Machine instructions. And the amount of code written in different programming languages to do the same job varies greatly."
"For example, to complete the same task, you need to write 1,000 lines of code in C language, Java only needs to write 100 lines, and Python may only have 20 lines." Huang Zhenrong glanced at Wu Bin again, "I still know Java."
"I know, I know." Wu Bin nodded immediately.
"Huh~ It sounds like Python is very comfortable, but there is a price for having less code, that is, the running speed will be slower. A C program can run for one second, a Java program may take 2 seconds, and a Python program may take 10 seconds. .”
Wu Bin nodded while listening, his eyes constantly shining with excitement, because it sounded really complicated and there was a lot to learn!
After talking to Wu Bin about the differences between many programming languages, Huang Zhenrong ate another mint and concluded: "In short, I haven't learned much, but based on my personal experience and what I saw on the forum from various big guys To sum up, C language is Shaolin Changquan, Python, Java, PHP, etc. are evil sword techniques."
"What do you mean?" Wu Bin asked curiously.
"If you learn Shaolin Changquan for a month, what can you do? Show others how to punch the horse for an afternoon, and then hit a powerful right hook? But the evil-fighting sword technique does not need to understand the basics, and you can quickly master it even if you don't have basic skills. After learning it for a month , Wow, that performance is full of sword energy! It’s so fancy and beautiful.”
Huang Zhenrong made two exaggerated gestures as he spoke, "But practice the sword technique to ward off evil spirits. If you are not clear about the direction of the true energy in your body, and there is a slight deviation, you will go crazy. And if there is another dragon-slaying sword in the martial arts, If you don't know the secrets of the Heaven-Shading Swordsmanship, you can only sigh, curse, and then join the team competing for the secret book, otherwise you will only become a stepping stone for the younger generations of martial arts."
"As for the C language, it requires you to know what each meridian in your body looks like and where the true energy gathers. This is actually really boring, especially if you are learning it with others, your junior brother I have learned how to use Python to guide the world, and I will release sword energy and other things next to you at every turn, and you are still standing there, can you survive?"
"What if I survive?" Wu Bin asked expectantly.
"Can you endure it? Then you believe me, don't talk about the "Evil-Repelling Sword Technique". As long as you are interested, you can create a set of Thirty-Eight Dragon Subduing Palms or a Twelve-Meridian Divine Sword. When the time comes, you can You can just sigh in front of those who practice evil swordsmanship."
"The martial arts in the world really come from Shaolin!"