Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What on earth is programming?

Shulou Source: shulou.com Published: 2022-06-03 05:20:57 09月29日 Update

Today, someone asked: what exactly are we learning about programming?

I thought for a moment and replied, "to learn programming is to learn how to make rules!"

So you will find that among those who learn programming, those who have strong logical thinking ability generally learn programming well, while those who fail to do things generally do not learn well.

Seeing a joke on the Internet is a good illustration of the difference between people with programming thinking and people without programming thinking.

One day, a university teacher asked a student, there are ten birds in the tree, shot and killed one, how many are left?

Ordinary people replied: there are nine more. (one is dead, but there are still nine standing on the tree)

The man who can turn his mind once replied: there is another one. (the dead are still in the tree, and the other nine are scared away.)

The man who can turn his mind twice replied, "none of them." (there is a good chance of falling from the tree, and the other nine are scared away.)

The program answers are as follows:

Q: is it silent?

Teacher: no

Q: how loud was the gunshot?

Teacher: 80-100 decibels.

Q: is it against the law to hunt birds in this city?

Teacher: no offense.

Q: are you sure that bird was really killed?

Teacher: sure. (by this time, the teacher was already impatient.)

Teacher: can you just tell me how many birds are left, OK?

Q: are there any deaf people in the birds in the tree?

Teacher: no.

Q: are there any caged ones hanging from a tree?

Teacher: no.

Q: are there any other trees on the side? are there any other birds on the trees?

Teacher: no.

Q: if a bird is pregnant, is it a bird in its belly?

Teacher: not really.

Q: do bird hunters have flowers in their eyes?

Teacher: no flowers, just ten. (the teacher was already sweaty and the bell rang, but the procedure continued to ask.)

Q: are there any birds that are too stupid to die?

Teacher: they are all afraid of death.

Q: will two of them be killed with one shot?

Teacher: no.

The programmer said confidently: if your answer is not deceptive, then there are two situations: if the killed bird does not fall from the tree, then there is only one left, and if it falls, there is no one left.

The teacher immediately foamed at the mouth and fell to the ground!

I believe you can see the benefits of learning programming, .

So what exactly is programming? Let's first find out what a program is.

Cheng, the accuracy of things. Xunzi becomes an official

Preface, east-west wall. -- Shuo Wen

In other words, "Cheng" represents the standard, and "preface" represents the scope.

So my understanding of programming is simple: to develop a process to solve problems within a certain range. For example, the following picture shows a master programmer.

So much for the concept of programming. Everyone is welcome to express their opinions.

Tags: Teacher programming program that is thinking brain scope impatience yes very big afraid of death ordinary lose things express their own views not afraid of death foaming at the mouth full of confidence logical thinking the following pict Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Docker OPPO Reno Shulou Tech Info Huawei