Learning is nothing more than going hand in hand with both consciousness and practice. If you want to learn programming, or if you want to learn programming well, then you must consciously regard programming as knowledge and technology, be willing to sit on the cold bench for it, and refuse the hustle and bustle outside the window; It is also necessary to create conditions for the implementation of programming learning in practice, to create temporal and spatial conditions, to create material and spiritual conditions, and to create internal and external conditions.
The so-called programming is to willThe way of thinking of human beings to solve problemsSteps to deal with thingswithMethods for distinguishing objectsin the prescribed formatWrite a program, giveComputersto replace human beings to solve problems, deal with things, and distinguish objects.
Therefore, in order to get started with programming, you must have it consciouslyAbility to summarize and generalizeIn the thousands of mundane things that you have experienced and witnessed, you can understand and sort out the form of problems, the types of things and the attributes of objects. In short, to:Mathematical calculations are programmedFor example, it isWith clarity of thoughtInductionAdd, subtract, multiply, and divide each step and press to followThere are inputs, there are processes, and there are outputsThe principle of process and form a responseSimilar problemsof universalSolution。If you lack this theoretical abstraction, then it is recommended not to follow the trend and engage in the computer industry, so as not to waste half your life.
On the basis of the awareness of having the ability to abstract theoretically, in order for the practice of programming to go smoothly, it is necessaryOwn a computer, desktop or laptop, at the same time,It is better to have laid the foundation for the basic operation of the computer, at least know how to use the mouse and keyboard, and at least know how to go online ** files and install software. Because,Each stage of programming is based on computerized programming, which is commonly referred to as writing **. Only by typing the case into the computer and executing it can we deeply understand the knowledge points interpreted by the case in the experience. It's impossible to really learn how to program just by looking at it。With basic computer knowledge, you can start to get started with programming step by step
Choose a high-level programming languageWhen choosing, the current situation of the industry is fully considered, which is currently available in C C++, Python, J**A, and HTML.
Set up a development environmentGive the computer the ability to parse and execute commands, which is a prerequisite for subsequent programming practice.
The Hello World experience, which is implemented in the programming language of your choice, outputs a "Hello World" on a computer screen.
Learn the syntax, keywords, and program structure of a programming language.
To learn process-oriented programming, you can choose to implement common calculations, judgments, and theorems in mathematics as part of your programming practice.
Learn object-oriented programmingi.e. learningEncapsulation, inheritance, and polymorphism
Learn the theory of data structures, the data structure of various organizational forms involved in the theory is procedurally implemented.
Learn to design algorithms. The essence of computer programs,It's a data-based operationThe speed of the operation and the accuracy of the calculation result are highly related to the algorithm used in the calculation.
Once you know how to design an algorithm, congratulations on getting started with programming in the truest sense of the word!