How to learn a language

Source: Internet
Author: User
Tags ruby on rails

From freshman year, the teacher said that proficient in a language, you can quickly learn to get started other languages, this sentence is not false. Its deep meaning is that there is little difference of thought, the main difference is the grammar. After learning, think that many languages are actually the same, such as order, cycle, structure, class, abstraction, encapsulation, inheritance ... All the basic languages are inseparable. At school, from C, C + +, SQL Server, data structure, Java,. NET, Android, Ruby, Ruby on Rails, EXT, CSS, HTML, JavaScript, actually learn these languages, Not how difficult it is, often not the ideological constraints, but the implementation of the details of the program, sometimes a detail spent a clock to debug it, so when you learn to use a language to implement an instance, it is necessary to learn to debug code, remember the error when the keyword, the type of error, the later development is relatively easy. Of course, the above is based on the introduction of language, the real development process, but also need a lot of consideration, such as network programming, multi-threading, performance optimization, security protection, development of new features, the final maintenance is a trivial matter, but is a very good beginner, because can contact the essence of the predecessors, combined with Project learning, Think is the best way to learn, extract the essence, discard its dross, and change it. Finally, the responsibility of Everything (enthusiasm), thinking first.

The basic steps of learning a language, first of all, do not plunge into the study of a book, look at previous predecessors of the proposal, stepping on the shoulders of giants to learn, their learning will improve faster! Know what? The role of language, which applies to which aspect, do not learn the end, but do not know it is more suitable for which field, there are any advantages and disadvantages, conducive to learning from the other language in contrast, so that the knowledge of the more solid, open source code, see there is no open source code, good open source code, whether knowledge or code style, Will affect the next road, the main grammatical characteristics of the language, what is the end of each sentence, what is the entrance of the program, etc., the idea of language, the main use of what ideas, abstraction, encapsulation, inheritance, the parameters of the transfer of the style and so on, the common language, to see what knowledge is often used.

From learning a language to development, the real beginning of things with this, everything begins difficult, learning language first to build the environment, for beginners, build the environment will appear a lot of problems, many do not know why, first do not panic, see clear problems, Baidu, Google to find solutions, In fact, the building summed up mainly related to three aspects: environmental variables, the introduction of the package or library, editing environment. After learning other languages, I gradually felt that it was difficult to set up a language environment.

Next is to learn grammar, find a good book, a knowledge point first read the book, according to the book to knock an example, then do not read, knock again, can remember the meaning of each sentence and run successfully, then find a topic, thinking, do it yourself, so that, without the back grammar, natural let the grammar very deep memory in their mind.

After learning the grammar, understand the use of this language architecture, create a new project, understand the project of the relationship between the directory, and the role of each directory, each is what files, each file format characteristics, to achieve a small project, experience the internal operation of the program is how the parameters are passed, how the page jump implementation and so on.

After learning the above, then learn to analyze the code, from the open source code base, pull down the code to deploy on their own computer, try to see the code. Debug code, understand the parameters of the delivery, the implementation of the function, from which can deepen the syntax, of course, is the realization of learning function, such as how to realize automatic landing when landing, remember the password, of course, combined with some books to understand the principle behind the implementation of the function, will be better, see how to encapsulate Code, code, ask why

Finally, after summing up to think of a unique idea, through their own strength, realize, and accumulate their own development experience.

Method Tens of thousands of ways to find their own is reasonable.

How to learn a language

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.