The challenges in JavaScript learning

Source: Internet
Author: User

When people try to learn JavaScript, or other programming techniques, they often encounter the same challenges:

Some concepts are easy to confuse, especially if you have studied other languages.
It's hard to find time to study (sometimes it's motivation).
Once you understand something, it's easy to forget it again.
You can use a lot of tools and change often, so don't know where to start.
Fortunately, these challenges can eventually be overcome. In this article, I will introduce 6 thinking techniques to help you learn JavaScript more quickly and make you a more productive programmer.

1. Don't let future decisions stop you from making progress

For many people who study JavaScript, the first question they ask is which framework to choose (very many existing frameworks). But if you're not familiar with native JavaScript, that's a question you shouldn't ask. You'll spend all your time querying different frameworks and not making any progress.

One way to get out of this hesitant trap is to have a learning roadmap. For example, to be a front-end developer, your roadmap might be something like this:

Further splitting the Learning plan, you can use HTML and CSS to make a functional web page. Knowing the specific steps, you'll easily know what you need to focus on now, so you won't waste time worrying about what you'll learn in the future.

2. Don't let confidence deceive you into the forgotten trap

In the process of learning JavaScript, a quick understanding of a concept may be the most detrimental to your progress. Please allow me to explain.

When you understand something and feel it makes sense, you tend to learn the following things right away. Perhaps you will understand the following and continue to learn. But soon you'll find that you've forgotten something you've learned before, so you need to review it again. You take a quick peek at the concept before renewing the memory and then continuing to learn. But this time you've forgotten something else. You'll keep going on and on until you find yourself completely lost. You will feel discouraged, after a rest, you are ready to start again, but found that you have forgotten everything.

Fortunately, there are only two simple steps to solve this problem:

1. Limit the amount of content in a single study

2. Earnest Practice-write code

When you learn new concepts, be sure to try more, apply more, be familiar with it, and even combine it with other concepts. Writing code in the example you're learning is important because it helps you understand it deeply. At the same time, limiting the amount of content you learn at a time can help you remember these things because it is easier to remember less content.

This process may take more time than just reading through the rest of the content, but it actually takes less time because you don't have to go back and forth. After many attempts, I finally mastered this method.

3. Use the right mindset for practical practice

Many people think that practice is a repetitive and uninteresting thing, so they often skip practice and try to take shortcuts. If you're trying to take a shortcut in JavaScript practice, you actually need to take a long time to learn it. But how do you make practice more interesting and make you willing to practice?

Try switching ideas:

How would you feel if you learned a new JavaScript concept and couldn't try it? For me personally, I feel annoyed, especially after I have spent the time to understand it. It's like a kid who has a new toy but can't play it.

When you learn some new JavaScript knowledge, try to treat a new toy, a new car, a new pair of shoes, or something else you are interested in trying. Practice like playing, rather than practicing like a job. Do some great things with new skills. Give yourself some surprises and show them to your friends.

Stay entertained and you'll learn faster, remember longer, and you'll feel more interesting.

4. Use Facebook tips to find time to program

One of the common problems is that there is no time to program. But these people can spend hours on websites like Facebook, YouTube, Wikipedia or Reddit. Whether you have such a situation or not, there are places worth learning.

A lot of the time I just wanted to see Facebook for a little while, and I ended up staying there for hours. Why is that? This is precisely because I am not going to stay there for too long. Everything starts hard, and I find it easier to put goals down. If someone asks me if I'm going to spend a few hours on Facebook, I'll say no, because I don't have that time. However, I am more inclined to accept the idea of a quick look at something, and that is how I am attracted.

The good news is that you can use the same psychological advantage to learn programming. Don't try to spend hours programming, because you can't find such a time. Tell yourself to write only three minutes of code, and you won't be struggling to find time.

5. The more slowly you think, the faster you learn

It sounds counterintuitive, so I'll use a story to explain it.

A friend of mine once wondered about some of the features of JavaScript. I told him to go over with me. What he knows and then explain which part is confusing. When he checked the code snippet, I noticed that he was a little impatient.

And so on "I said. "Slow down and explain to me every step here." ”

My friend went on to explain to me how this code works.

I interrupted him again, "You're still in a hurry." Try again, but this time, I need you to explain each line of code to me verbatim and tell me what the code does. ”

This time, my friends can better explain what's going on in the code. The key is that he takes the time to step through each line of code instead of trying to understand it all at once.

In such situations, the slower you think, the more slowly you can actually learn.

6. First write complex code in simple language

If a piece of code is too complex or unfamiliar, write it in simple language first. This way, you can figure out what you want the code to do before you actually write the code. There are two benefits to this approach:

1. The code is easier to write faster because you don't always have to stop to think about how it should work.

2. You can catch a bug in advance because you know exactly what the code does.

Conclusion

We've learned a few ways to learn JavaScript quickly, and you can use these techniques to learn other skills. Here's a summary of what we're talking about:

Do not worry about future decisions, you should devote yourself to learning.
Treating new skills with a toy mentality can make practice more interesting.
It's like playing Facebook, YouTube or Wikipedia, using small-target methods to find time to program.
Slow down, step a little, and you'll learn faster.
How did you learn it? Do you have any other tips.

The article turns from the network, only for the study reference!

The challenges in JavaScript learning

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.