Quick learning of the Six Thinking Skills of JavaScript and quick learning of javascript

Source: Internet
Author: User

Quick learning of the Six Thinking Skills of JavaScript and quick learning of javascript

When we are learning JavaScript or any other coding skills, it is often because of these obstacles:

  • Some concepts may cause confusion, especially when you switch from other languages.
  • Cannot find time (sometimes motivation) for learning.
  • It is easy to forget what you have understood.
  • Many tools are constantly changing, so I don't know where to start.

Fortunately, these obstacles can be identified and eliminated. In this article, I will introduce six thinking skills to help you learn JavaScript faster and become a happier and more productive programmer.

1. Do not let future decisions stop you from moving forward.

Many people learn JavaScript and often ask the first question "which framework should I use ?". However, if you have not mastered the most basic JavaScript, this is obviously a wrong problem. You spent all your time studying different frameworks, so you began to stagnate.

One way to help you get rid of this trap is to draw a road map that you need to learn. For example, to become a front-end developer, your Roadmap may be like this:

For further decomposition, you can create a functional web page with only HTML and CSS. Then, let's list each step in this way, so we can see what we should focus on now. You will not waste time worrying about future issues.

If you think this roadmap is very useful, you can refer to the learning road map for becoming a front-end developer I wrote earlier, which describes in detail. (Note: For how to learn JavaScript, you can also refer to the article "8 Mind Map sharing for learning JavaScript programming language)

2. Do not trick yourself into forgetting things.

A quick understanding of a concept may be one of the things that affect your progress on the way to learning JavaScript. Let me explain the following.

When you read something that you think is true, it is very likely that you will jump directly to the next content. Then, you thought the content was easy to understand. But soon, you will find that you have forgotten what you think you have mastered, so you can only look back at it. You have browsed it quickly, and you have understood it again. Then you can proceed. But you find that you have forgotten something else. You are in this loop until you lose yourself. You can't help but get discouraged. Think about it. But when you get back after the break, you find that you have forgotten all the content.

To solve this problem, you only need two steps:

  1. Limit the amount of learning at a time.
  2. Practice-write code in practice.

When you learn a new concept, you must try it, play with it, Get familiar with it, and even combine it with other concepts. The actual output to the sample code is very important, because it can help you digest and absorb it. In addition, limiting the amount of learning at a time can help you remember materials. The truth is also very simple. The fewer things, the better you remember.

Although this learning process will make you feel more time needed, it is actually the opposite, because you no longer need to go back. I learned this skill only after many terrible lessons.

3. exercise with the right attitude

Many people think that repeated exercises are especially boring, so they usually choose to skip or try to take shortcuts. If you enter JavaScript to practice, more learning time is required. Try to make the exercises interesting. Isn't it so resistant?

Try to change your mindset:

What if you want to learn a new JavaScript concept but cannot try it? How do you feel? Personally, I will be particularly upset. This is like a child getting a new toy, but cannot play.

When you learn something new in JavaScript, try to treat it as a new toy, a new car, a new shoe, or anything else you are interested in trying. Do not regard exercises as work, or exercise as play. Try something cool with new skills. You can't help but wonder. Then show it to your friends.

With a game mentality, you will learn faster, remember longer, and have more fun.

4. Magic of time to write code

The most common problem in learning JavaScript is that you cannot find time to write code. However, at the same time, there is a lot of time to browse various websites, such as Facebook, YouTube, Wikipedia and Reddit.

I tried Facebook several times. At first I wanted to open Facebook for a short time, and then I realized that I had been watching it for several hours. How did this happen? Maybe it's because I'm not going to watch it for a long time. Everything is hard at the beginning. Once the head is opened, it is much easier to get stuck in the back. But if someone asks me if I want to spend time on Facebook, I will say no, because I don't have enough time. However, it is often easier to accept it for a while and then get stuck in it.

The good news is that you can also use the same psychology to learn to write code. Don't think about coding for several hours at first, because you can never find so much time. Just tell yourself that you have to write the code for three minutes. In this way, you never have to worry about time.

5. Slow thinking and faster learning

This seems to be against common sense. I will explain it in a small story.

One of my friends was once confused about a function of JavaScript. So I asked him to explain in detail what he knew and then explain to him what he was confused. However, when he checked the code snippet, I noticed a piece of code that he was very hasty.

"Wait !" I said, "Let's talk about it slowly. Each step is detailed ."

My friends continue to give me a comprehensive summary of what happened in the code.

I had to stop him again. "You are too hasty. Try again, but this time, I hope you can check every line of code literally and tell every line of code what happened ."

This time, my friends have finally been able to explain exactly what is happening in the code. The key to the problem is that he can finally check the code snippets step by step, rather than just trying to understand all the code at once.

In a situation similar to this, slow thinking can actually make you learn faster.

6. First, write complex code in a concise language.

If you encounter a complex or unfamiliar code, you should first write it in easy-to-understand language. In this way, you can clearly know what you want to do before writing code. There are two advantages:

  • Code is easier to write, because you don't need to stop and think about what you want it to do.
  • It can be captured before a bug occurs, because you have a clear concept about what the code should do.

Conclusion

We have discussed a bunch of ways to learn JavaScript faster, and you can also apply these skills to other skills. Next, let's review:

  • Do not worry about future decisions. study in depth first.
  • Exercise new skills happily as toys.
  • Find time to write code with a small commitment, just as you initially comforted yourself to visit the website for only a small period of time.
  • Slow down, the smaller the pace, the faster you learn.

By the way, how did you learn it? Do you have any good skills? Welcome to the discussion.

Related Article

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.