How to standardize ASP

xiaoxiao2021-03-06  16

I wrote another ASP! Many people are very despised about ASP attitude. Hey ~ There is no way to reality. It is often reflected by money. Ok, I said it back. ASP also requires specifications. I have seen too much confusion ASP code (this is the same). So I decided to prepare the ASP from today. 1. The variable must be declared in advance and cannot be lazy. 2. Naming of variables To specification. (I have to pay attention to this when I write C #.) 3. Be sure to write a comment. Oh, many people have reminded me this. There are at least 30% of the code. 4. Write a file to reuse the commonly used items (such as intercepting functions of the title, prevent injection functions, etc.). Write the function reused by this item to another file and put it in the Inc folder. And I usually write all reuse functions. This is more confusing in the future. 5. Pay attention to performance. Pay more attention to Request.Form, RS (0), and so on. Multi-SQL statements are replaced by less complex SQL statements as much as possible. Consider using Application, getRows cache data.

There should be a lot of aspects. Continue to add later in the future.

转载请注明原文地址:https://www.9cbs.com/read-57992.html

New Post(0)