"IT168 Review" have you decided to learn a new programming language? How do I start? This article lists 12 ways to quickly master a programming language, and if you have other better suggestions, you are welcome to share!
1. Comparison with similar programming languages
This should be easy for programmers! You can try to guess the language's characteristics by watching the language's tutorials or reading the sample code, for example:
• What programming languages is the language similar to, and what is the similarity point?
• What is the difference between the language and what is beyond your imagination.
· What does the language mainly use for?
If the conditions permit, you can look for friends who are learning the programming language and communicate with each other, perhaps with a clearer understanding.
2. Read the official documentation for the programming language
If you want to get a lot of information before you use it, you can benefit from the official documentation, which is usually very prescriptive.
3. Online Search
Online search is a great way to provide you with a lot of useful information about the best coding methods and the resolution of specific errors. When there is a problem with your program, you can search for some information on the Internet, for example, if the editor prompts "error on line 53rd, invalid parameter exception", you can search for the code and invalid parameter exceptions to find the solution.
You can also search the Web for blog posts on best practices for solving specific problems in your language. The quality of a blog post can be determined by viewing the author's public code contribution, as shown in the evaluation search results.
4. Participate in Community communication
While blog posts and official documents can get a lot of useful information, there are a variety of issues you might encounter when trying to write code. Don't worry, you can post questions and code to the community for help. There, there is always a group of enthusiastic programmers to help you answer.
To ask questions that help you respond, make sure you're in the right place. Many programming languages are divided into "beginners" and chat communication and many other channels, specifically for different groups. Before asking questions, be sure to ask the right place.
5. Try to write some small games in the language
Practicing a small new concept at a time, it's probably the best way to practice by writing a little game. You can also compare it to a small game made in a similar programming language.
6. Apply to the work
Writing a small game is a good first step, but eventually you have to learn to use it correctly. Using it in a more working environment can help you get a full picture of the programming language, and then consider porting a familiar, relatively small, well-tested program to a new language.
7. Read a book about the programming language
If you have a few similar books, you can compare the comments of several authors and consider which author's background is most similar to yours. Of course, you don't have to go to the bookstore to pick it up, there are many ebooks available for free online.
Before you read a book about a programming language, review the release date and the language version that the sample covers. If you are using an older book, be sure to try using the language version example that it uses. Online research to see what has changed in the programming language since it was published.
8. Watch lectures and Courses
Now there are a lot of good online video teaching sites, in addition to academic lectures, you can also consider participating in a number of academic conferences and so on.
9. Read the sample code
Most books on programming languages contain snippets of code. In general, programmers can also find sample code in blogs and Rosetta code. Run the code samples, modify them, and try to predict what behavior the modifications will cause.
10. Read the Production Code
If a programmer wants to learn about all the projects in the programming language, the best way is to search for it on GitHub. The programmer will get a list of the most popular open source tools or projects containing the language, sorted by the final welcome or most influential way. If you want to understand the design of an open source project, you can interact with the community via email or IRC. Of course, you may also find some bugs.
11. Select Tools
When you decide to choose a new language, you can consult with experienced users about their development environment. You may find that a particular text editor or IDE supports the new language better than you used to. Investigate options for managing dependencies, formatting, blurring, and unit test code in the new language ecosystem.
12. Keep your Passion
Attitude is actually the best guide, keep an optimistic attitude, not impatient. Learning a new programming language is still easy, but it usually takes years to get a real mastery of it. Do not take it as a pressure, but as a hobby, perhaps there will be unexpected gains.
Programmer, what ideas and techniques do you have in learning a new programming language? What are some interesting things in the learning process? You can share them in the comments!
Original source: http://tech.it168.com/a2017/0417/3116/000003116308.shtml
12 ways for programmers to quickly master a programming language