编程单词缩写规则

编程单词缩写规则

1、大于2个单词则采用缩写规则,否则不用缩写。
2、缩写的规则采用国际惯用方法:
元音字母剔除法,首字母除外。
使用单词的头一个或几个字母。

组合单词使用如下规则:
3、使用变量名中每个有典型意义的单词。如Count of Failure写成FailCnt。
4、去掉无用的单词后缀 ing, ed等。如Paging Request写成PagReq。

例如:ft=foot,jpn=japan,bld=build,您可以尝试读一下,发音几乎不变,辅音字母是发音的关键。
依据此规则,则字母应该缩写如下:
project_no=prjct_no
approval_status=apprvl_status
contract_code=cntrct_code
department=department(无需缩写)

另外尽量采用大家公认的缩写形式。

====== 常用缩写 ======
完整单词 缩写
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)

===》元音剔除法、截头法为基本方法,在此基础上使用“典型词组合法”

发表评论

邮箱地址不会被公开。 必填项已用*标注