6 Thinking techniques for fast learning JavaScript _javascript tips

Source: Internet
Author: User

When we are learning JavaScript, or any other coding skill, we are often deterred by these stumbling blocks:

    • Some concepts can cause confusion, especially if you are transferring from other languages.
    • Can't find time (sometimes motivation) to learn.
    • It's easy to forget what you already understand.
    • Tools are constantly changing, so don't know where to start.

Fortunately, these stumbling blocks can be identified and eliminated. In this article, I'll introduce six thinking tips to help you learn JavaScript faster and become a happier and more productive programmer.

1. Don't let future decisions stop you from moving forward now.

A lot of people learn JavaScript, and the first question is often, "which frame should I use?" ”。 But if you haven't mastered the basics of JavaScript, that's obviously a wrong question. You spend all your time studying different frameworks, so you start to stagnate.

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

To further decompose, you can do a functional Web page with only HTML and CSS. And then, like this step-by-step list of each step, then for now should focus on what to do, at a glance. You don't waste time worrying about things you should worry about later.

If you find this roadmap useful, take a look at my previous "Learning road map for becoming a front-end developer," which is described in detail. (Note: For the course of learning JavaScript, you can also refer to the article "Learning 8 Mind map sharing" in the JavaScript programming language)

2. Don't let confidence trick you into forgetting things

Getting to know a concept quickly may be one of the things that most influences your progress on the way to learning JavaScript. Please allow me to explain below.

When you read something and you think it is, then it is possible to jump directly to the next content. Then you think the next thing is very straightforward, so keep looking down. But soon, you will find that you have forgotten what you think you already know, so you can only go back and review it. You go through it quickly, feel it again, and move on. But you find yourself forgetting something else. You have been in this cycle until you finally lost yourself. You don't get discouraged, think about taking a break, but when you come back from a break, you find that you've forgotten everything.

To solve this problem, it is also very simple, only need two steps:

    1. Limit the amount of one study.
    2. Practice-actually write code.

When you go to learn a new concept, be sure to try it, fiddle with it, familiarize with it, and even combine it with other concepts. and the actual output to the sample code is very important because it helps you digest and absorb it. In addition, limit the amount of time to learn, to help remember the information, the truth is very simple, the less the better remember.

While this learning process makes you feel like you need more time, in fact it is the opposite, because you don't need to go back so much. I have also been through a lot of horrible lessons to understand this technique.

3. Use the right attitude to do the exercise

Many people think that repeated exercises are especially boring, so they usually choose to skip or try to take shortcuts. If you go into JavaScript practice, you'll end up needing more time to learn. Try to make the practice interesting, is it not so irresistible?

Try to change the mindset:

What if you were to learn a new JavaScript concept and not try it? How do you feel about that? Personally, I would be particularly annoyed. It's like a child getting a new toy, but not playing.

When you learn something new in JavaScript, try to use it as a new toy, a new car, a new shoe, or anything else you're interested in trying. Then do not use practice as a job, but practice as a play. Try something cool with a new skill. Let yourself not be surprised by the. and show it to your friends.

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

4. Time Magic to write code

The most common problem with learning JavaScript is that you can't find time to write code. But, at the same time, there is a lot of time to browse various websites, such as Facebook,youtube, Wikipedia and Reddit.

I've had several times, I just wanted to open Facebook for a little while, and then I realized I'd been watching for hours. How did this happen? Maybe it's because I'm not going to watch it for a long time. Everything is difficult at the beginning, once the head is open, it becomes much easier to sink in behind. 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 take a look at the time and then get bogged down in it.

The good news is that you can also use the same mentality to learn to write code. Don't think about coding for hours at first because you'll never find so much time. Just tell yourself you're going to write 3 minutes of code. You'll never have time to worry about it.

5. Think more slowly and learn faster

This may sound counterintuitive, and I'll explain it in a little story below.

One of my friends used to be confused about a feature of JavaScript. So I asked him to say exactly what he knew and then explain to him the part he was confused about. However, when he examined the snippet, I noticed that there was a piece of code that he was very hasty about.

"Wait a minute!" "I said," Slowly, every step of the way to speak in detail. ”

My friend continues to give me a comprehensive summary of what's going on in the code.

I had to call him again. "You're still too hasty," he said. Try again, but this time, I want you to literally check every line of code and tell each line what's going on. ”

This time, my friend is finally able to explain exactly what is going on in the code. The point is that he can finally examine the snippets step-by-step, rather than simply trying to digest all the code at once.

In a situation like this, thinking slower can actually make you learn faster.

6. First write complex code in concise language

If you come across a complex or unfamiliar code, write it in plain language first. This way, you can know exactly what you want the code to do before you write the code. There are two advantages to doing this:

    • The code is easier to write because you don't have to always stop and think about what you want it to represent.
    • It can be captured before a bug happens, because you have a clear idea of what the code should do.

Conclusion

We've discussed a bunch of ways to learn JavaScript faster, and you can apply these techniques to other skills as well. Here's a recap:

    • Do not worry about what decisions to make in the future, and learn well in depth first.
    • Practice the new skills as a toy in general.
    • Use small commitments to find time to write code, just as you begin to comfort yourself by browsing a small time website.
    • Slow down, the smaller the pace, the faster you learn.

By the way, how did you learn? Do you have any good tips? 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.