Here, golang is used as an example to illustrate how to quickly get started with a computer language.
1. Choose a tutorial
Since it is an introduction, it must not be very advanced. For a computer language, it is enough to help us get started with the minimum and minimum necessary knowledge. These points are generally sufficient:
- Basic grammar
- Language features (golang's most important language feature is multicore and concurrency)
- Development environment and build process: development, testing, release
- Common standard library
Therefore, the tutorial to be selected must cover at least the above points in order to be an introduction.
How to choose?
The official website is the first place to know. A brief analysis of the composition of the golang official website (see website navigation):
The content of each navigation should be looked at, the most basic impression of the composition of the website content, is the first step to get started with the language. Then we bring the question raised: Find the least amount of language knowledge. Find the resources we need. It's not hard to see that Documents can provide what we need.
Golang's Documents includes environment installation and configuration, and the Learning section also provides a number of introductory tutorials:
Remember the questions we asked at the beginning, as long as the tutorial covers these points, just pick one.
Would you like to choose one of them? Is it too casual?
The purpose of the introduction is to help us understand the basic characteristics of the familiar language. The different chapters may have different emphasis on the chapter arrangement, the order of explanation is different, but the content is similar, which can help us achieve our goal. One to compare the time cost is higher, it is better to choose one and read it.
Just pick one and you must read it carefully. If the tutorial covers the exercises, it is best to implement them.
The method of choosing the golang tutorial is also applicable to other languages. The official webs
ite of most languages has a structure similar to golang. Follow the methods and principles presented above, and get started as soon as possible. Only when you are introduced, you are qualified to really comment on the language. Otherwise, you say golang is good, where is it? It is clear that PHP is the best language.
Some language officials don't give detailed tutorials, and Google can make a big difference. Keywords: language + tutorial Search for the top 10 results and choose one.
2. Learn by doing
The so-called learning by doing, there is no effective output, and more input is a low level of diligence. With the foundation of the first step, we can already do something with this language.
Remember two principles:
- Don't be too hard
- The cycle cannot be too long
Just learn to get a little fur and don't expect to be able to make things that are very complicated and level, so as to keep the enthusiasm for continuous learning. If the cycle is too long, there is no way to get effective and timely feedback, and it is difficult to achieve the purpose of inspection and learning.
Under these two principles, just choose.
Since we are not casual people, it may be a bit too casual to just choose a project to practice.
Recommend a github.com/tuvttran/pr... project by doing small project exercises.
It’s also a good choice to use a blog that you use yourself.
The distance between theory and practice is like an imaginary girl and a girl in reality. You think that the girl is exquisite, slim, like a bird, maybe the girl is a man than the man. The nil in golang is completely different from the null in java. The type of golang is post-type. The function of golang is to participate by value. Want to quote? Remember to write pointers.
3. Putting it into use
After practicing a small project, you can use it in your daily development environment. This is the stage where language helps us improve productivity.
For example, small projects within the team, some batch work for personal development, and simple command-line tools can use the new language.
When you start using it, you may feel that the efficiency is lower than before. This is actually normal. After all, the new language is definitely not familiar with it, so you need to use it frequently in daily development, and learn to think and deal with problems in new languages. Transform thinking patterns.
If you want a language or a tool to be a part of yourself, you are as skilled as your left and right hands. Practice is the only way. Get feedback in use and use feedback to fix existing perceptions.
4. Make a big deal
After the third step is completed, it is necessary to carry out a step-by-step growth to complete the core grasp and true understanding of the language. It is necessary to do a big deal.
The so-called big, that is, relative to the extent of their current mastery, is not a blind pursuit of the big, how to grasp this degree varies from person to person, so pre-assessment is essential, these principles can be used for reference:
- The degree of complexity or complexity must be that someone who can hold or work with you can hold
- Minimal functional principles put into use and harvest feedback
- Throw the problem as soon as possible without delaying the deadline
For example, golang can be used to replace a single functional module of an online production service, and the module is controllable even if the problem has a problem with the production service. Of course, it is best not to have problems.
The difference between the production environment and the development and test environment forces the programmer to consider all aspects of engineering problems such as testing, deployment, operation and maintenance, upgrades, maintenance, performance, etc., a complete and controllable project in the production environment. It is very effective in accumulating new language usage experience.
Most of the computer languages are connected. As long as there is any basis, it is not difficult to learn other languages. The above 4 points can also be said to be four different goals of the language of quick start, distributed in all stages of learning, as long as aiming Goals, quick actions, breaking one by one, forming habits, learning and mastering a new language in a short period of time is not difficult.
Talk is cheap, show me your code, regardless of the stage of learning, the output is the most important.