For the majority of beginners in programming, there is a general understanding that it is very important to choose a programming language for learning programming. Keeping your mouth shut is some popular development tools such as VisualBasic, Visual C++,Delphi and Power Builder. It is often seen that beginners ask: I learn C/C++,which is better to learn < P > Visual C++or Borland C++ Builder? Or ask to choose between Visual Basic and Delphi. What is the relationship between learning programming and learning programming language? How should beginners choose? In this regard, let's make a simple analogy: learning programming is like learning to shoot, and the programming language corresponds to various firearms such as air guns, pistols and rifles in shooting. To learn to shoot, you must choose a gun. You can't learn to shoot well without a gun, and you can't learn to use all the guns at the same time. However, if you master one kind of gun shooting, you will learn something else. Because while being familiar with a gun, I also learned the shooting technology itself. If you learn something else, you will get twice the result with half the effort. Learning programming is the same, and it is inevitable to start with learning a programming language. At the same time, in the process of learning?
suggestion: you don't have to start with a certain language to learn programming. You can choose one that you can accept easily from Visual Basic, Delphi, Borland C++ Builder or Pascal and Turbo C (or Borland C) under DOS. What I mainly learn from it is the idea of programming itself, and what I learn is to look at the problem from the perspective of programming. Perhaps, the effect of learning can't be seen immediately, but you can learn solid basic skills, which is of great benefit to the further development in the future. These basic skills include:
1. Strengthening the ability of logical analysis and establishing mathematical models
What is the purpose of programming? Is to solve real problems. However, the problems in reality are described in natural language, which can't be understood by current computers. What we have to do is to "tell" the computer the problem in a way that the computer can understand. It also requires us to make a logical analysis of real problems, establish a reasonable mathematical model, and then input it into a computer in the form of programs and data. The three colors of R, G and B each represent a color, and the processing of colors is transformed into the processing of three integers of R, G and B. We can change these three integers into another color just by changing them. For other practical problems, we should also make them count like
2. Knowledge of data structures and algorithms
Up to now, there has been a set of relatively universal and complete mathematical models (we call them
data structures) and corresponding processing methods (that is, algorithms). The current procedure is based on
this. There is an empirical saying among programmers: "A good data structure is one and a half of a program." Its importance can be seen. As a programmer
Third, rich practical experience
Programming itself is a very practical subject. A program that only exists on paper is like a bird without wings that can never fly in the real sky. No matter how clever and elegant the code is, it is just a series of characters on a piece of paper. Just like a composition exercise, it may be well written, but
what's the difference between it and a blank sheet of paper if you don't give it to the teacher for marking? ! Finally, as a programmer, there is still a little requirement: that is, you should be in good health and be able to stay up late.
Top of Form 1
choosing its tools and doing its thing well-on the selection of programming tools
"If a worker wants to do his thing well, he must first sharpen his tools"-The Analects of Confucius. Many people want to
choose an excellent programming tool when learning software programming. Strolling around the bookstore, you can see a wide variety of programming books, but
you haven't decided what programming language to learn, so you don't know what to buy.
If you want to learn programming well, you must carefully understand the characteristics of various languages and find your own learning direction. Then you must first make clear what you want to do and what you are interested in. What's more, what kind of programming do you want to accomplish now? What are the main functions of your program? Therefore, among many softwares,
choose the development tool that suits you.
1. Basic language development tools
Languages such as Delphi, VC++and VB are all object-oriented programming languages. Although each language has different support for object-oriented, they always run through the main thread of the whole thinking mode of programming. Therefore, to learn these languages well, we should not focus on the specific grammatical format of a language at first, but should pay attention to learning the basic theory of object-oriented
Visual Basic
On the basis of mastering the basic concepts of object-oriented programming, VB is relatively easy to get started
. When learning VB, we should pay attention to grasp the essence of objects, avoid clutter and complexity, and master the properties and events of
objects and controls, their functions and usage, and the simple functions of main functions. The most effective
method is to organize a learning step from simple to complex, such as: when learning the simple drawing function of VB, learn to draw sine curves by yourself; Learn to use picturecl control to make a liquid crystal display time; When learning API functions, make your own taskbar icon. This method can help you master the use of common objects and events in VB.
The most flexible language-Delphi
For Delphi, if you have ever studied PASCAL, you will find that many things are "deja vu". Indeed, Delphi itself is written by object
PASCAL with a similar structure to Pascal. If you have a certain PASCAL foundation, it will certainly be easier to learn. In addition, we should also pay attention to the understanding and application of packages in Delphi. For example, what should be paid attention to in running-time package, design-time package and building your own package. On the basis of mastering the Object Pascal language, we can focus on how to use Delphi to write Windows applications, Delphi database programming, create controls and program development.
The most powerful language-Visual C++
VC++has a relatively complete Microsoft basic class library, which makes the development of Windows applications simple and
efficient. It provides a complex resource editor, which can easily edit dialog boxes, menus, toolbars and other elements, so it is powerful and easy to use, but compared with VB and Delphi, it is difficult to get started and master. To learn VC++,we should first focus on basic data types, input/output, loops and arrays, templates and how to create C++applications. After that, we should further study the use of resource editor, ActiveX control and editor optimization in VC++. At present, most of the books about VC++are about developing applications using various versions of VC++,while ignoring the basic knowledge of C++.In fact, for beginners, starting with specific application design and ignoring the basic knowledge will greatly increase the learning difficulty and easily lose their confidence in learning? ! ---->
Of course, all these languages have their own database programming and Internet programming. On the basis of mastering the program itself, you can also choose to study according to your own needs. When you have a certain programming ability, you might as well design a realistic and interesting topic, develop and design it yourself. This will help you to be proficient in
Second, database programming
If you mainly want to complete the design of database, you should choose special database development tools, such as SQLServer and PowerBulider. If you just need to complete a relatively simple database function, take a closer look at Access. It doesn't take much time, but you can also gain a lot. In addition, there are some tools specially used for large-scale database development, such as DB2, Sysbase and Oracle. This kind of software generally needs to have a solid basic knowledge of database and certain software development ability. If you are starting from scratch, it is recommended not to learn this kind of software from the beginning. PB and SQLServer are mainly used for data processing and database access. Because of the good compatibility between SQLServer and operating system and its wide application in the network, many amateurs choose to learn it at present. When learning SQLServer, we should focus on the composition of SQL language, the transaction management of SQL and the query and optimization of SQL. PB has always been used by many people. While learning the basic skills of database use, we should also pay attention to that in PB, API functions need to be called for applications that need to access special functions of Windows, such as controlling the mouse, creating directories and flashing □'7b windows.
When learning database programming, you can try to complete a complete software development cycle. From the beginning of demand analysis, I personally experienced the whole process of designing database, creating database front end, creating tables, completing common queries and outputting reports.
Third, network programming
At present, the more popular network programming tools can be described as "different styles and a hundred flowers blossom". Each tool has its own unique characteristics and its own advantages in Internet implementation.
when learning Java, we should make clear the basic object-oriented theories such as object and inheritance, and grasp the running mechanism of Java fundamentally. In learning, we should focus on its language foundation, programming technology and application between Java and ActiveX and JavaBeans. You can write some classic small programs to deepen your mastery of basic skills: write card games with Java's graphics processing ability, write mine clearance or Tetris with AWT, and write online chat rooms with Java's network function, etc.
relatively speaking, ASP editing method is simple, easy to use and powerful, and has been widely used. When learning
ASP, you should first have a certain understanding of ASP-related network knowledge, Web Server settings, HTML language, etc. On this basis, you should pay attention to the learning of VBScript, the main programming language of ASP, the common objects and groups of ASP
. If you want to have a deeper understanding of ASP, you must also have basic skills in using its commonly used databases
SQLServer and Acess. You can try to compile a simple online voting, online supermarket and other programs to deepen your grasp of the above knowledge.
In addition, it is worth mentioning that there is a "rookie" of network programming language-PHP. It breaks away from the restriction that ASP can only use NT or Windows 2 as the server operating system, and its access to the database is faster and more direct than ASP. But at present, for beginners, its language is difficult to understand, its installation is relatively complicated, and the materials available for reference and learning are far less than ASP. At the same time, using PHP in Windows can't reflect its advantages well. Therefore, we suggest that for beginners without Linux/Uninx foundation, it is best not to learn from PHP.
there is another great feature of network programming: you can learn by paying attention everywhere. Always pay attention to the design of various websites on the Internet, and pay attention to other people's design ideas and creativity, which will make your network programming skills improve rapidly. Generally speaking, the network compilation 7b itself is not difficult, but because it involves a wide range in specific project design, such as the process of direct interface with various databases and language learning, it is a process of self-creation, self-programming, and also a process of gradual mastery and application. In the process of learning, it is the real essence and fun of programming development to gradually cultivate good programming thinking and experience, gradually improve programming ability and find a better design scheme!
I'm afraid I can't understand the data structure. When I say master, I don't mean on the boundary of whether I can, but on the boundary of whether I can.