Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Why is js so difficult to learn?

2025-03-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces why js is so difficult to learn, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand.

1. How to abstract the concrete problem

That is, when faced with a very specific need, for example, an online mall, its internal interactions are numerous and complicated. So how did you start to write? The front-end architecture also needs to be designed, which depends on whether you understand the business of the online mall and whether you can take all kinds of situations into consideration. If there are all kinds of problems, then how do they cause them?

2, how to control the complexity of the code

It is often said that you can't write more than many lines of code in a function, but the complexity of a single business in actual development is that you have to write so much code. This requires good code writing habits and ideas, so that it is easy to maintain, modify and upgrade in a single method.

3, the meaning of past code

The code is not text. You wrote an article three months ago, and you read it three months later, and you still understand what you wrote. But the code is not, most of the time it doesn't take three months, the code you wrote three days ago, and then you look at it three days later, you have no idea what it means.

When you read the text, you read the meaning directly. But if you look at the code, especially the code of others, most of the time you have to translate it into Chinese in your head and then connect it together in order to understand the meaning of this code. But, but what does this code mean throughout the project? Who's calling it? What situations is it written to deal with? I still don't know. This often happens when you join an existing multi-person collaborative project. You don't know why others are writing this for a long time, and then you don't dare to change it and delete it.

4, the limitation of human brain.

The brains of ordinary people like you and me are basically very difficult to deal with an N-multivariable program like a program, unable to look at a piece of code and think about its operation process in the brain to see if there is something wrong with it. The human brain is not good at this, for example, let you calculate a 288 '193' 435, you must use a calculator. Let's not talk about child prodigies, because none of us are.

The program requires that all variables and code must be correct, and there is one wrong, that is, all wrong. But people like you and me can't load and simulate the whole operation like memory. In fact, the brain is not enough, do not understand. So you need to debug, you need console.log, you need F5 refresh to see the results. So it exists objectively that programming is inherently difficult because of the limitations of biology.

5. The problem of language itself.

It's JS. It's not an intuitive natural language. You can't say what you see. First of all, you need to know grammar. Grammar is not difficult. But you need to be able to describe the problems and requirements you see in JS language. There is a process of adaptation and transformation.

Thank you for reading this article carefully. I hope the article "Why js is so difficult to learn" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report