JavaScript mode (1): Introduction

Source: Internet
Author: User

What is a mode?

Broadly speaking, pattern refers to a pattern and process of regular changes and self-repetition on objects or events. In the pattern, some fixed elements are repeatedly reproduced in a predictable manner. The most basic and common model, known as password store, has two features: repeatability and periodicity. Finding a fixed pattern is one of the basic cognitive functions of humans. (Copied from Wikipedia)

It's a bunker, so it's a mess... In our software development process, the pattern can generally be understood as a solution or solution to a class of problems. (My understanding is to solve some common problems)

What are the advantages of a pattern?

Before using a new technology or language, we will measure whether it is good or bad for our current and future development. Through the learning mode, we can use proven experience to write code without having to do a lot of extra work, such as on the site side (if there is no excessive performance requirement ), we usually use Jquery as the base layer to help us deal with browser compatibility. We only need to write code at the Comm layer and even the Page layer, which greatly improves our work efficiency. The usage mode allows me to focus on more complex business implementation, without having to tangle with the rewriting of existing mature code (commonly known as wheel building, but it is necessary to make the wheel deeply. This also avoids us from being troubled by these things when thinking about the business logic.

Note: This is a theoretical (nonsense) note, which includes my understanding in my work and study. If there is a mistake, I hope to correct it and make progress together!

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.