Xueba's Sea of ​​Stars

Chapter 122 Programming Languages

Chapter 122 Programming Languages
The door of the office was open, and Wu Bin walked in directly.

"Hello, Teacher Huang..."

When Huang Zhenrong heard that he was looking for him, 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 the sound of an explosion coming out of the computer, 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 I would do this?"

"It's the students who told me that if they want to learn C language, I should go to you." Wu Bin pointed to the computer again, "Teacher, you were very fast in beheading just now."

"Hahahaha!" Huang Zhenrong let out a burst of laughter, "It's ok, Wu Bin, you will be able to talk in the third 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 one of the best in class Three because of his physical fitness, so Huang Zhenrong often took him out to do demonstration moves. The two had a deep impression of each other.

"I have always admired my teacher."

Wu Bin's words are not a compliment. This teacher Huang can definitely be regarded as a powerful physical education teacher in Xiazhong. He is 21, and it is very easy to do two pull-ups, and he has strong upper body strength.

"Oh, it's good for a genius to talk to me." Huang Zhenrong stood up and patted Wu Bin on the shoulder, "Your boy is now a man of the school, you are the first in the grade, and you are participating in the competition. I heard that Your photo will be posted at the school gate in two days?"

"Ah!?" Wu Bin looked confused, "I really haven't heard of this."

"Oh, 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 the 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 beginner, then come to me now, I can indeed teach you something."

"Listen, my personal point of view is that python is a programming language that has many advantages. It is simple, easy to learn, fast, and has a clear goal. It allows you to focus on solving problems instead of understanding the language itself. It can be said that it is nearly One of the most popular programming languages ​​for several years."

"Then why did my friend recommend me to learn C language, and said it is the general trend?" Wu Bin asked strangely.

"Because the C language is the most basic thing. When you enter the university, the C language is compulsory if you take information courses, but it is too boring compared with python."

Speaking of which, Huang Zhenrong opened an application box on the computer, "Python comes with its own equipment, and the reason why it is suitable for getting started is largely due to its rich third-party library. You only need to learn a little, and you can get in touch with it." and use them, and show off."

"How about the C language?" Huang Zhenrong opened another black box, "Its 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 show off?"

"So teacher, you are learning python?"

"Me?" Huang Zhenrong pointed to himself, "I'm just a fan, and anyone who is interested will read it. Anyway, if I explain the difference to you clearly, it can still be done."

"First of all, you have to establish a concept, that is, any programming language is used to develop programs and make computers 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.

I taught him the basics of his studies. Computers basically understand digital signals, that is, numbers composed of a series of 0s and 1s. As for which instructions a bunch of 0s and 1s correspond to, that is determined by the hardware manufacturer.

The X86, ARM, and AI-64 that you may have seen are all architectures of a certain instruction set.

Seeing Wu Bin nodding, Huang Zhenrong went on to say: "Then you know that the CPU of a computer only understands machine instructions. So, although different programming languages ​​are very different, they all have to be 'translated' into CPU-executable instructions in the end. Machine instructions. Different programming languages ​​do the same job, and the amount of code written varies greatly.”

"For example, to complete the same task, C language needs to write 1000 lines of code, Java only needs to write 100 lines, and Python may only need 20 lines." Huang Zhenrong glanced at Wu Bin again, "I still know java."

"I know, I know." Wu Bin nodded immediately.

"Hey~ Does it sound like Python is very comfortable, but there is a price for less code, that is, the running speed will be slow. A C program runs 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 kept shining with excitement, because it sounds really complicated, and there is a lot to learn!
After talking to 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 based on my personal experience and what I saw in the forum To sum it up, the C language is Shaolin Changquan, Python, java, and PHP, which are the evil swordsmanship."

"What do you mean?" Wu Bin asked curiously.

"If you learn Shaolin Changquan for a month, what can you perform? Show others how to tie a horse for an afternoon, and then hit a powerful right uppercut? But evil swordsmanship does not need to understand the basics, and you can quickly get started without basic skills. After learning for a month , Wow, that performance is full of swordsmanship! It's so gaudy, it's not good enough to show off."

Huang Zhenrong made two exaggerated gestures while talking, "But practice evil swordsmanship, if you don't know the direction of the true energy in your body, if there is a slight deviation, you will go crazy, and if there is another dragon-slaying sword in the martial arts You can only sigh, scold your mother, and then join the team competing for the cheats, otherwise you can only become a stepping stone for the younger generation of martial arts."

"As for the C language, it is for you to know what it is like without a single meridian in your body, and what the direction of true energy gathering is. This is actually really boring, especially when you learn it with others, your junior brother I have learned to use Python to point out the country, and I will release sword energy next to you at every turn, and you are still there, can you survive?"

"Then what if I survive?" Wu Bin asked expectantly.

"Survive it? Then you believe me, don't talk about "Evil Resisting Swordsmanship", as long as you are interested, create a set of 38 dragon subduing palms, twelve-veined sword, and then you will be completely You can sigh in front of those who practice evil swordsmanship."

"The world's martial arts really come from Shaolin!"

(End of this chapter)

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like