Programming thinking | Why learn programming, because it will teach you how to think~~~

ChatGPT has been soaring for 160 days, and the world is no longer what it used to be.

A new artificial intelligence Chinese website https://ai.weoknow.com
updates the available chatGPT resources available in China every day


learn to program

What can I do?

Programming is just a "synonym" for programmers?

Others don't need to learn programming...

1

What can I learn programming to do?

stan planet

mentioned programming

Most people's first reaction is that programmers...

engaged in related work

Obviously the biggest benefit of learning programming!

Develop websites, mobile apps, etc.

but now

Cumbersome and repetitive tasks in various jobs

It can also be assisted by programming~

2

What is programming thinking?

You should think of another word related to programming-code.

To put it simply, programming is the process of using a programming language to write program codes in order to achieve a certain purpose or solve a certain problem with the help of a computer, and finally get the result.

The code can be said to be a programming language, which can convert the language description generated by human thought and thinking process into a language that computers can understand. 

For example, for ordinary people, we can receive information that others want to spread through sound. But deaf-mute people can't. If you want to spread information to them, you can convert sound into other things, such as text and sign language.

This process is actually similar to the process of programming, because the information is reorganized and written, and conveyed to certain specific groups of people through other means.

Therefore, the programming thinking that is usually mentioned, in fact, in addition to referring to numbers, symbols or codes, the most important thing is to creatively solve problems and accurately express real ideas.

In addition, learning programming thinking can also exercise your rational thinking ability and logical thinking ability.

3

Why learn programming thinking?

Learning programming thinking, in fact, the most important thing is to learn "how to solve problems".

Some people have said that when people live in this world, they are actually solving one problem after another.

Therefore, "problem solving" is the norm in our lives, and regular exercise of the brain and problem solving is beneficial to writing programs or cultivating our programming thinking, and it also helps to concentrate, improve memory and our own responsiveness.

In other words, we can learn a more direct and quick way to solve problems by learning programming thinking.

Therefore, no matter how complicated a problem we encounter, it can actually be broken down into three steps to solve it:

Step 1: Figure out what the problem is.

Step 2: Think about different solutions to the problem.

Step 3: Verify the different solutions considered.

"Three Brothers" logic puzzle

Suppose you know three identical brothers, John, James, and William. Among them, John and James only tell lies, while William only tells the truth. So, when you meet one of the three brothers and you can only ask one question to make sure it's John, what question do you ask?

Let's solve this logic puzzle using the three-step method above.

First, we need to figure out what the problem is. This question is to let you determine whether the person you meet is "John". This is the essence of the problem-confirm whether the person you meet is John.

Then, let's think about how they would answer if we asked them the same question. According to the known conditions, John and James are telling lies, and only William can tell the truth.

Then, when we ask them if they are one of the three brothers, the following happens:

Question 1: Are you John?

John (lying): no

James (lying): yes

William (tell the truth): no

Result: It is impossible to distinguish who is John, because both John and William will answer "no".

Question 2: Are you William?

John (lying): yes

James (lying): yes

William (tell the truth): yes

Result: It is impossible to distinguish who is John, because all three will answer "yes".

Question 2: Are you James?

John (lying): yes

James (lying): No

William (tell the truth): no

Result: It is possible to distinguish who is John, because John is the only one who will answer "yes".

Finally, through verification, we can get the real solution to this question, which is to ask him "Are you James?" If the answer is "Yes", then the person we met is John.

Therefore, the key to solving the problem is actually to find the problem, think about the problem, and then verify the solution to finally solve the problem.

learn programming thinking,

is learning a way of thinking,

Means the ability to creatively solve problems and express ideas.

Learning programming
is not to let children become programmers,
but to open a door for them
to enter a broader future world.


ChatGPT has been soaring for 160 days, and the world is no longer what it used to be.

A new artificial intelligence Chinese website https://ai.weoknow.com
updates the available chatGPT resources available in China every day

Guess you like

Origin blog.csdn.net/zyqytsoft/article/details/131173100
Recommended