Module extension record, causing a project exception.

Source: Internet
Author: User

NOP Project

To keep up with NOP updates, the manager insisted on not modifying the NOP source code.

Development with triggers and plug-ins

NOP custom interfaces or completely independent new expansion functions are easy to plug-in.

However, it is not easy to expand some functions in the original NOP project.

In fact, it will take 10 minutes to change the source code, but it is because it does not change the source code.

 

It is a waste of time and energy, which adds a lot of risks.

 

Some logic is written in the module for expansion, which seriously affects the performance.

 

Before function development, I personally suggest you directly change somewhere and write logs. Later, you can change the data by log. The amount is not too large.

After the manager refused, he had to propose to change the module for extension.

After that, I wrote only a small part of the logic and added the logic later.

 

 

In addition, the global IIS mode is used.

Operation part with a selected session in Module

JS, CSS Static Page, API, also through the module, but these two types of access, no Cookie Session.

Static Page verification is missing in the first version, leading to the loss of all page styles and effects.

 

Check whether the global regular expression is a static file (performance loss, and omission may occur ).

Verify whether a session exists.

 

For JS and static pages, nginx can be configured later to avoid access to web services (that is, it is obtained directly from nginx before taking the module)

 

Other colleagues' plug-ins are only responsible for their own plug-ins. Even if they are wrong, they are only in a small scope.

 

For module development, a small mistake that is not considered will result in a large number of errors, resulting in a website crash, laborious and serious thankless.

 

The requirement for changing the module is simply an error!

 

PS, the company's new project, but there is no independent test environment.

Module extension record, causing a project exception.

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.