Skip to content
项目

abbrcode/abbreviations-in-code

在 GitHub 查看

关于

代码中常见缩写列表

学习与教育

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Abbreviations in code

Giving good names to variables, functions and files can be difficult. Long names are always clear, but take time to read, space and are hard to remember. Choosing a shorter form is better. If you use the abbreviations below, your naming will become more coherent, logical and understandable to other programmers (even newbies).

Contributing • Licence

Discussions • Website • AbbrExt

Guide

Colored circles before the abbr mean the degree of recommendation:

  • 🟢 Recommended
  • 🟡 Context-sensitive • Context is specified between { }
  • 🔴 Not recommended

Translations & versions

Alt ver • it

List

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

A

  • abbreviation • 🟢 abbr
  • absolute • 🟢 abs
  • acronym • 🟢 acro
  • action • 🔴 act
  • active • 🔴 act
  • actual • 🔴 act
  • addition • 🟢 sum
  • address • 🟢 addr
  • algorithm • 🟢 algo
  • allocation • 🟡 alloc { memory }
  • alternative • 🟢 alt
  • annotation • 🟢 anno
  • application • 🟢 app
  • arccosecant • 🟢 acosec
  • arccosine • 🟢 acos
  • arccotangent • 🟢 acot • 🟢 actg
  • arcsecant • 🟢 asec
  • arcsine • 🟢 asin
  • arctangent • 🟢 atan
  • argument • 🟢 arg
  • array • 🟢 arr
  • asynchronous • 🟢 async
  • attribute • 🟢 attr
  • authentication • 🟢 auth
  • auxiliary • 🟢 aux
  • average • 🟢 avg

B

  • background • 🟢 bg
  • battery • 🟡 bat { power }
  • binary • 🟢 bin
  • boolean • 🟢 bool
  • break • 🔴 brk
  • breakline • 🟡 bl { encoding }
  • buffer • 🔴 buf • 🟢 buff
  • button • 🟢 btn

C

  • calculator • 🟢 calc
  • callback • 🟢 cb
  • certificate • 🟢 cert
  • channel • 🟡 ch { connections }
  • character • 🟢 char
  • check • 🟢 chk
  • checksum • 🟡 csum { operations }
  • circle • 🟡 circ { shapes }
  • class • 🔴 cls
  • clear • 🟢 clr
  • collection • 🟢 coll
  • column • 🟢 col
  • command • 🟢 cmd
  • commercial • 🟡 com { URLs }
  • common • 🔴 com • 🔴 comm
  • communication • 🟢 com
  • comparison • 🟡 cmp { conditional operators }
  • component • 🟢 comp
  • concatenation • 🟢 concat
  • condition • 🟢 cond
  • configuration • 🔴 cfg • 🔴 conf • 🟢 config
  • connection • 🔴 con • 🟢 conn
  • constant • 🟢 const
  • container • 🟢 cntr
  • context • 🟢 ctx
  • continue • 🟢 cont
  • control • 🟢 ctrl
  • conversation • 🟢 conv
  • coordinate • 🟢 coord
  • copy • 🔴 cpy
  • cosecant • 🟢 cosec
  • cosine • 🟢 cos
  • cotangent • 🟢 cot • 🟢 ctg
  • count • 🟢 cnt
  • current • 🔴 cur • 🟢 curr

D

  • database • 🟢 db
  • debug • 🟢 dbg
  • decimal • 🟢 dec
  • declaration • 🟢 decl
  • decrease • 🟡 dec { loops }
  • default • 🔴 def
  • definition • 🟢 def
  • degrees • 🟢 deg
  • deletion • 🟢 del
  • delta time • 🟡 dt { calculations }
  • dependency • 🟢 dep
  • description • 🟢 desc
  • destination • 🟢 dest
  • developer • 🟢 dev
  • development • 🟢 dev
  • device • 🟡 dev { devices }
  • difference • 🟡 diff { operations }
  • dimension • 🟢 dim
  • direction • 🟢 dir
  • directory • 🟢 dir
  • disable • 🟢 dis
  • display • 🟢 disp
  • division • 🟢 div
  • document • 🟢 doc
  • documentation • 🟢 docs
  • driver • 🟢 drv
  • dynamic • 🟢 dyn

E

  • element • 🟢 elm
  • enable • 🟢 en
  • environment • 🟢 env
  • equal • 🟡 eq { binary operations }
  • error • 🟢 err
  • event • 🟢 e • 🟢 evt
  • execution • 🟢 exe
  • exponential • 🟢 exp
  • expression • 🟢 expr
  • extension • 🟢 ext

F

  • facet • 🟢 fct
  • factory • 🟢 fac
  • figure • 🟢 fig
  • file chooser • 🟢 fc
  • file descriptor • 🟢 fd
  • file processor • 🟢 fp
  • file reader • 🟢 fr
  • file system • 🟢 fs
  • file writer • 🟢 fw
  • for example • 🟢 e.g.
  • format • 🟢 fmt
  • fraction • 🟢 frac
  • frequence • 🟢 freq
  • function • 🔴 f • 🔴 fn • 🔴 fun • 🟢 func
  • function pointer • 🟢 fp

G

  • generation • 🟢 gen
  • geometry • 🟢 geom
  • greater or equal • 🟡 ge { binary operations }
  • greater than • 🟡 gt { binary operations }

H

  • hardware • 🟡 hw { computer science }
  • header • 🔴 hdr
  • height • 🟡 h { shapes }
  • hexadecimal • 🟢 hex
  • horizontal • 🟡 hor { shapes }

I

  • identifier • 🟢 id
  • image • 🟢 img
  • implementation • 🟢 impl
  • import • 🟢 imp
  • inclusion • 🟢 inc
  • increase • 🟡 inc { loops }
  • index • 🟢 idx
  • information • 🟢 info
  • initialization • 🟢 init
  • input • 🟢 in
  • insertion • 🟢 ins
  • instance • 🟢 inst
  • integer • 🟢 int
  • interface • 🟢 iface • 🔴 intf
  • inverse • 🟢 inv
  • iterator • 🟡 iter { loops }

J

K

  • key • 🟡 k { only with val }
  • keymap • 🟢 km
  • keyword • 🟢 kwd

L

  • language • 🟢 lang
  • latitude • 🟡 lat { only with coord }
  • length • 🟢 len
  • less or equal • 🟡 le { binary operators }
  • less than • 🟡 lt { binary operators }
  • level • 🟢 lvl
  • library • 🟢 lib
  • link • 🔴 lnk
  • linked list • 🟢 ll
  • location • 🟢 loc
  • longitude • 🟡 lon { only with coord }

M

  • manager • 🟢 mng
  • matrix • 🟡 mat { mathematics } • 🟡 mtx { mathematics }
  • maximum • 🟢 max
  • memory • 🟢 mem
  • message • 🟢 msg
  • metadata • 🟡 meta { data science }
  • microcontroller • 🟢 mcu
  • middle • 🟢 mid
  • minimum • 🟢 min
  • miscellaneous • 🟢 misc
  • modulo • 🟢 mod
  • multiplication • 🟢 mul
  • mutable • 🟡 mut { variables }

N

  • navigation • 🟢 nav
  • network • 🟢 net
  • newline • 🟡 nl { endcoding }
  • no • 🟡 n { only with y }
  • node • 🟡 $... { DOM }
  • not equal • 🟡 ne { binary operators }
  • number • 🟢 num
  • number of • 🟢 num

O

  • object • 🟢 obj
  • object key • 🟡 key { only with val }
  • octal • 🟢 oct
  • open source • 🔴 os
  • open source software • 🟢 oss
  • operating system • 🟢 os
  • operation • 🟡 op { binary operations }
  • option • 🟢 opt
  • order • 🟡 ord { data science }
  • organization • 🟢 org
  • origin • 🟢 orig
  • output • 🟢 out

P

  • package • 🟢 pkg
  • parameter • 🟢 param
  • performance • 🟢 perf
  • picture • 🟢 pic
  • pixel • 🟢 px
  • pointer • 🟡 p { memory } • 🟢 ptr
  • poligon • 🟢 pol
  • position • 🟢 pos
  • power • 🟡 pwr { energy }
  • predication • 🟢 pred
  • prediction • 🟢 pred
  • preference • 🟢 pref
  • previous • 🟢 prev
  • private • 🟢 priv
  • process • 🟡 proc { threads }
  • production • 🟢 prod
  • profiler • 🟢 prof
  • property • 🟢 prop
  • public • 🟢 pub

Q

  • query • 🟢 q • 🔴 qry

R

  • radians • 🟢 rad
  • radius • 🟡 r { circles }
  • random • 🟢 rand • 🔴 rnd
  • range • 🟢 rng
  • receive • 🟢 recv
  • record • 🟢 rec
  • rectangle • 🟡 rect { shapes }
  • reference • 🟢 ref
  • regular expression • 🟢 regex • 🔴 rgx
  • relation • 🟢 rel
  • remote • 🟢 rem
  • remove • 🟢 rm • 🟢 rmv
  • repository • 🟢 repo
  • request • 🟢 req
  • response • 🟢 res
  • result • 🟢 res
  • return • 🟢 ret
  • revision • 🟢 rev

S

  • script • 🔴 sc
  • secant • 🟢 sec
  • selection • 🟢 sel
  • semaphore • 🟡 sem { conditional operators }
  • separator • 🟢 sep
  • sequence • 🟢 seq
  • service • 🟢 svc
  • session • 🟢 sess
  • signed as prefix • 🟡 s { modifiers }
  • sine • 🟢 sin
  • software • 🟡 sw { computer science }
  • solution • 🔴 sln • 🟢 sol
  • solver • 🟢 sol
  • source • 🟢 src
  • specification • 🟢 spec
  • square root • 🟢 sqrt
  • standard • 🟢 std
  • standard input output • 🟢 stdio
  • statement • 🟢 stmt
  • statistic • 🟢 stat
  • string • 🟢 str
  • subtration • 🟢 sub
  • synchronization • 🟢 sync

T

  • table data • 🟢 td
  • table header • 🟢 th
  • table row • 🟢 tr
  • tangent • 🟢 tan
  • target • 🔴 tgt
  • temporary • 🟢 tmp • 🟢 temp
  • text • 🔴 txt
  • time • 🟡 t { physics }
  • timer • 🟢 tmr
  • timestamp • 🟢 ts
  • to • 🔴 2
  • toggle • 🔴 tgl
  • transaction • 🟢 tx
  • type • 🟡 t { modifiers } • 🔴 tpe

U

  • user • 🟡 u { URLs } • 🔴 usr
  • utility • 🟢 util

V

  • value • 🟡 v { only with k } • 🟢 val
  • variable • 🟢 var
  • vector • 🟡 v { physics } • 🟢 vec
  • version • 🟢 v • 🔴 ver
  • vertical • 🟢 ver

W

  • white space • 🟡 ws { encoding }
  • width • 🟡 w { shapes }
  • window • 🟢 win
  • wizard • 🟢 wiz

X

Y

  • yes • 🟡 y { only with n }

Z

280 abbrs in the list


Go up to list index

探索相关项目

加载中…