How can a novice get started programming fastest?

First understand what programming is about. Programming is the process of letting the computer solve a certain problem for a certain computing system, and stipulate a certain computing method for the computing system to run according to the computing method, and finally get the corresponding results.

In order for the computer to understand human intentions, humans must tell the computer the ideas, methods, and means of the problem to be solved in a form that the computer can understand, so that the computer can work step by step according to human instructions to complete a specific task . This process of communication between people and computing systems is programming.

For computers, everything is just numbers. Then the purpose of writing our code is actually to tell the computer two things, one is what the number is, and the other is how to count! Therefore, the composition of the program is two parts: the number and the organization of the number, that is, the data structure, and the logic of the operation, that is, the algorithm. And all programming languages ​​are to express the contents of these two parts.

A complete programming language generally includes the following: data declarations and types, operators and keywords, 3 major statements (assignment, selection, loop), data structures, methods, classes, etc. Among them, the declaration and type of data and data structure are used to express the number and the organization of the number; the rest is the logic of expressing the operation except the class; and the class is the most special, which contains both the data structure and the operation logic.

 

With the above overall understanding of the programming language, it is to understand the relevant knowledge points one by one. And these knowledge points are often pulled one by one, and understanding the latter one is also easy to understand:

All roots are numbers. Numbers must be divided into types-> types, numbers must be stored-> variables, constants, there is a relationship between numbers-> data structures, numbers must be calculated-> operators, numbers must be calculated according to rules-> 3 big sentences, calculation rules should be sorted out Come out and reuse-> methods, the relationship between numbers and methods is closely together-> classes, encapsulation, there is similarity between classes and classes-> inheritance, each subclass of inheritance is different-> polymorphism, encapsulation, inheritance, multiple Get together-> object-oriented programming ...

We must grasp this context between these language knowledge points, know where they came from and where they will develop, and the most important thing is to know what problems they appear to solve.

 

On the basis of mastering the language, we must also learn how to use computer resources. Computer resources are packaged by various platforms and provided in the form of SDK. Programming language is a kind of expressive ability, and SDKs such as JDK and Android SDK are the use of resources, that is, the content of expression. We need to distinguish the difference between language and resources before we can finally use it freely. Learning is actually a process of learning to classify, knowing what is and knowing what to classify, so you wo n’t make a mistake when you find it.

 

When learning programming, we often encounter a problem: there are many knowledge points related to the computer major, and it looks unpredictable. To be able to master and quickly master a lot of programming knowledge, we need to have a clean cut angle.

We must first figure out a question: What is knowledge? Knowledge is a summary of solutions to problems. All the knowledge we come into contact with is only for solving a certain problem. You know that problem and you understand the ideas of others to solve the problem, and you can master this solution. Many students are caught in the ocean of knowledge and can't tell the direction in the clouds and fog, just because they don't know what the knowledge is used for and what problem they are solving. This is especially true for a lot of knowledge in computer technology. It appears in order to solve problems. You do n’t know what problem it is trying to solve, just wait to be haloed. Therefore, we must first find out the problems encountered in programming, and then understand how this problem is solved, and the solution is the so-called "knowledge point". Therefore, the "three questions of the soul" should be issued frequently

This method of learning is called "problem-oriented learning method". With this method of learning, when I come into contact with new knowledge during learning, I immediately realize that this is a solution to a certain problem, and cut in from the problem, I believe that the new knowledge can be understood and applied soon.

 

Finally, and the most fundamental one, the learning of programming is used, and only by using it can you truly master the language and understand the programming-related knowledge. If you want to learn programming, you can take a look at the zero-based programming course I published. It is simple and fun to learn.

 

Guess you like

Origin www.cnblogs.com/pz12389/p/12735590.html