[Arrangement] programming word abbreviation rules

Source: Internet
Author: User

1. If there are more than two words, the abbreviation rule is used. Otherwise, the abbreviation is not required.
2. the abbreviated rule adopts international customary methods:
Except for the first letter.
Use the first or several letters of a word.

Use the following rules to combine words:
3. Use each typical word in the variable name. For example, Count of failure is written as failcnt.
4. Remove useless word suffixes such as ING and Ed. For example, the paging request is written as pagreq.

For example, Ft = foot, JPN = Japan, and BLD = build. You can try to read it. The pronunciation is almost the same, and the key to the pronunciation is consonants.
According to this rule, the letters should be abbreviated as follows:
Project_no = prjct_no
Approval_status = apprvl_status
Contract_code = cntrct_code
Department = Department (abbreviation not required)

In addition, we should try to use widely accepted abbreviations.

======= Common abbreviations ======
Full abbreviations
A
Average --> AVG

B
Back --> BK
Background --> BG
Break --> BRK
Buffer --> Buf

C
Color --> Cr (CLR)
Control --> CTRL

D
Data --> dat
Delete --> Del
Document --> Doc

E
Edit --> EDT
Error --> err
Escape --> ESC

F
Flag --> flg
Form --> FRM

G
Grid --> GRD

I
Increment --> Inc
Information --> info
Initial --> init
Insert --> INS
Image --> img

L
Label --> lab
Length --> Len
List --> lst
Library --> lib

M
Manager --> mngr (MGR)
Message --> msg

O
Oracle --> ora

P
Panorama --> Pano
Password --> pwd
Picture --> PIC
Point --> PT
Position --> POS
Print --> prn
Program --> PRG

S
Server --> srv
Source --> SRC
Statistic --> stat
String --> Str
Sybase --> syb

T
Temp --> TMP
Text --> txt

U
User --> USR

W

Window --> WND (WIN)

===Use the vowel elimination and intercept methods as the basic methods"

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.