JS ~ What is coder's pursuit?

Source: Internet
Author: User
ArticleDirectory
    • Opening
    • What is it?
    • What is coder pursuing?
    • JS is not an object-oriented language
    • Directory
Opening

Different from other series of articles, this series focuses on specific knowledge points, but on how developers can writeCodeWrite robust code, write Happy code, and write object-oriented code. In fact, from the code written by a person, you can taste this person's mood, this person's attitude towards code (note, not work attitude, but code attitude ).

As a developer, do you go to Baidu for some code to implement a function and achieve an effect, or do you not even understand the meaning of writing your own code? If yes, then you should read this article, which will tell you what the code is, how to write the code, and how to write the happy work of developers.

What is it?

In my opinion, it means you write code from the heart, and you anthropomorphic your code. It may be your lover, lover, or an inseparable person, only in this way will you be responsible for the code you write, and you will find the unknown answer in the ocean of knowledge, and this process will make you review for the rest of your life, the heart is satisfied, the thoughts are simple, and the future is a challenge.

What is coder pursuing?

As a developer, we pursue more than just functions and effects. Each of us has our own goals, such as money, house, and car. When you are a developer, in addition to this, you may also pursue code performance, code readability, code scalability, code security, and code object-oriented.

JS is not an object-oriented language

Of course, I do not deny this. JS is really not object-oriented, but when you write JavaScript, you need to write with object-oriented ideas. No one will like to read repeated code, no one will like to see code without comments, no one will like to see code with diverse styles, and no one will like to see code with messy responsibilities, isn't it the object-oriented principle? Haha!

Directory There are some methods in the first round, so the write will be better. In the second round, some variables will be encapsulated to make it more acceptable. Third, what do you think about the code writing method? Fourth, which method parameters do you like to use? Fifth, the JS template is more like a world-isolated container.

 

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.