Learning methods and experiences of some programming languages

Source: Internet
Author: User

Because I still have some programming language foundation, so also keep up with the teacher progress. Through one weeks of learning to find, programming or special attention to the accumulation of peacetime, must be more knock more practice, the teacher said every exercise must understand, and in the case of the source code of independent knock out, so as to achieve the purpose of digestion mastery.

The programming language, like the foreign language, is first established as a large discipline, before it is too slighted. Different languages, corresponding to java,c++ and so have a completely different usage habits and content. Even based on C and C + + software also has MATLAB,QT,VC and so on different versions, although if,while and so on exist, but the methods used have different differences. Just like the different dialects of a language, listen to the same, but there is a process to actually use it.
Then, how to grasp the language well after the learning attitude of the programming language is emphasized? First look at my previous learning methods. The first contact programming should be in school when learning C + +, completely according to the textbook teacher in the above lectures we listen, and then the textbook to understand the example of knocking on the computer. After the proficiency of the example to do some changes to make their own program. This learning method for the future buried the hidden trouble, because of the face of a new problem to find a corresponding example of similar changes in the habit, extremely inefficient.
So how can you take off an example to complete a program independently or at least a function? I think the most important points are:
1. Understand the basic framework common to all programs. For QT, it is the relationship between Ui,cpp and the header file and the initial definition.
2. Be familiar with several basic common classes and their common functions. able to use skillfully. such as qpaint,qevent and so on.
3. To be able to find the relevant classes (note, not the relevant examples) when needed, and to be able to read through QT help, know how to use in the program, and exactly implement it.
In the process of building a complete program should also pay attention to:
A. From simple to complex, gradually increase the function of the program. First build the basic frame and then embellish on it. This process can continue to do some of their own small programs to try, and finally integrated into a multi-functional complete project.
B. Also all similar projects common, do one thing to concentrate on doing, such as today's task is a small function inside, that do not always think and other functions of the cohesion ah what, only do one thing, and do a good job.
Having said so much, we look back at how we can achieve the above objectives. 1 very simple, Hello world to understand the line, each of the first chapter of the textbook will give a description of this. 2 and 3 are more difficult, from the book it is difficult to quickly meet our requirements. Think of any conventional means of learning:
I. Books and their accompanying examples, which is undoubtedly the most used method. However, the reading is too slow, and programming is mainly to be used. And do not use e-books, this serious study must be the use of physical books. The main purpose of the book is to have a preliminary system understanding of the language, and to complete the requirements of 1, and then in some of the topics are related to the book and just have this aspect of the content of the place (this very little possibility) carefully read through, understand the principle.
II. Online resources:
Domestic personal blog: Excellent personal blog is a growth history of cattle, see these can go a lot less detours.
Domestic Forum: Exchange experiences and issues, share resources. The disadvantage is that the level is uneven, and there are a lot of problems found and no one to give a solution. Can find information on the above. Source code is best not from above, may be misled.
Foreign Forum: This is a start, to really learn a language, I think this is very important. No previous attention.
Official website: mostly some help and downloads.
III. A good software itself should teach you how to use it to learn.
Iv. The University network can find some excellent papers.
How do we learn after we have identified the basic learning pathways? The basic idea is to understand the basics first and then in the middle of battle. The specific idea I am also just a preliminary idea:
1) First find the most classic textbooks, see a few chapters to learn about this software.
2) search for excellent forums and blogs to see what good learning suggestions are on top.
3) Follow the instructions of the software to learn.
4) Find the commonly used classes, and see a few times examples, understand the later put aside examples of their own to write a slightly modified program.
5) Understand the classes that can be exploited and know how to find them and use them when they are actually used.
6) Write a note to some large programs, and time allows you to make one.
7) Start the project, first find similar in the above resources to inspire and avoid duplication of work, and then get to working.

Learning methods and experiences of some programming languages

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.