Excerpt from "discuz! Code specification for open Platforms "(Universal)

Source: Internet
Author: User
Tags code tag

Http://open.discuz.net/?ac=document&page=dev_coderule

This article font size (for this article editor only):

Item description font size aggravation or not example

Important content Title 18pt heavy Color I. Code writing specification, " preface "

General descriptive text 13px does not aggravate the content of the color sequence

General descriptive text title 13px heavy color subtitle " code tag "

(Note: line and row spacing, consistent, the column head is consistent; each line content length is controlled by about 2/3 of the width of the screen)

Order:

The coding specifications for each development language are different, but some are interlinked. Whether you are doing PHP (development) or Java, or Android/ios.

Coding standard degree, is a code farming experience embodiment. The importance of coding norms, naturally self-evident.

Take a look at this article, we can draw on what coding on the figured conventions.

Of course, the coding specification is a systematic project, and there are some good coding habits you can add in the comments.

The coding specification directions discussed in this article:

code writing; database design; other aspects

(Note: This article is only the original content of the collation, limited to some of the details, no longer repeat.)

I. Code-WRITING specification

1. Code tags

2. Notes

3. Writing Specifications

4. Naming conventions

5. Variable/logic Check

6. Security

7. Compatibility

8. Code Reuse

9. Other details

II. Database Design Specifications

1. Table structure

2. Fields

3. Performance

Iii. other aspects

1. cross-platform

2. Project directory naming

3. File references in Project location

Excerpt from "discuz! Code specification for open Platforms "(Universal)

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.