Giving good names to variables, functions, files etc. 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).
Colored circles before the abbr mean the degree of recommendation:
- 🟢 Recommended
- 🟡 Context-sensitive • Context is specified between { }.
- 🔴 Not recommended
- 🔴 2 • to
- abbreviation • 🟢 abbr
- absolute • 🟢 abs
- addition • 🟢 sum
- address • 🟢 addr
- action • 🔴 act
- active • 🔴 act
- actual • 🔴 act
- allocate • 🟡 alloc { memory }
- alternative • 🟢 alt
- alternate • 🟢 alt
- application • 🟢 app
- array • 🟢 arr
- argument • 🟢 arg
- asynchronous • 🟢 async
- attribute • 🟢 attr
- authentication • auth
- average • 🟢 avg
- background • 🟢 bg
- battery • 🟡 bat { power }
- binary • 🟢 bin
- boolean • 🟢 bool
- break • 🔴 brk
- breakline • 🟡 bl { encoding }
- buffer • 🟢 buf
- button • 🟢 btn
- calculate • 🟢 calc
- calculator • 🟢 calc
- callback • 🟢 cb
- certificate • 🟢 cert
- certification • 🟢 cert
- channel • 🟡 ch { connections }
- character • 🟢 char
- check • 🟢 chk
- checksum • 🟡 csum { operations }
- circle • 🟡 circ { shapes }
- clear • 🟢 clr
- command • 🟢 cmd
- commercial • 🔴 com
- common • 🔴 com
- communication • 🔴 com
- compare • 🟡 cmp { conditional operators }
- collection • 🟢 coll
- column • 🟢 col
- concatenate • 🟢 concat
- configuration • 🟢 config • 🔴 conf
- connection • 🟢 conn { connections }
- context • 🟢 ctx
- continue • 🟢 cont
- control • 🟢 ctrl
- conversation • 🟢 conv
- coordinate • 🟢 coord
- copy • 🔴 cpy
- cosine • 🟢 cos
- cotangent • 🟢 cot
- counter • 🟢 cnt
- current • 🟢 curr • 🔴 cur
- database • 🟢 db
- debug • 🟢 dbg
- decimal • 🟢 dec
- decrease • 🟡 dec { loops }
- default • 🔴 def
- define • 🟢 def
- delete • 🟢 del
- delta time • 🟡 dt { calculations }
- descriptor • 🟢 dsc
- destination • 🟢 dest
- developer • 🟢 dev
- development • 🟢 dev
- device • 🟡 dev { devices }
- difference • 🟡 diff { operations }
- direction • 🟢 dir
- directory • 🟢 dir
- disable • 🟢 dis
- display • 🟢 disp
- document • 🟢 doc
- driver • 🟢 drv
- dynamic • 🟢 dyn
- enable • 🟢 en
- environment • 🟢 env
- equal • 🟡 eq { binary operations }
- error • 🟢 err
- etc • 🟢 etc
- event • 🟢 e
- executable • 🟢 exe
- expression • 🟢 expr
- extension • 🟢 ext
- factory • 🟢 fac
- file descriptor • 🟢 fd
- figure • 🟢 fig
- for example 🟢 e.g.
- format • 🟢 fmt
- function • 🟢 func • 🔴 f • 🔴 fn
- function pointer • 🟢 fp
- generate • 🟢 gen
- greater or equal • 🟡 ge { binary operations }
- greater than • 🟡 gt { binary operations }
- hardware • 🟡 hw { computer science }
- header • 🔴 hdr
- height • 🟡 h { shapes }
- hexadecimal • 🟢 hex
- horizontal • 🟡 hor { shapes }
- identifier • 🟢 id
- image • 🟢 img
- include • 🟢 inc
- increase • 🟡 inc { loops }
- index • 🟢 idx
- information • info
- initialize • 🟢 init
- initialization • 🟢 init
- input • 🟢 in
- insert • 🟢 ins
- integer • 🟢 int
- iterator • 🟡 iter { loops }
- interface • 🟢 iface • 🔴 intf
- javascript • 🟢 js
- language • 🟢 lang
- latitude • 🟡 lat { only with coord }
- length • 🟢 len
- less or equal • 🟡 le { binary operators }
- less than • 🟡 lt { binary operators }
- library • 🟢 lib
- linked list • 🟢 ll
- longitude • 🟡 lon { only with coord }
- manager • 🟢 mng
- maximum • 🟢 max
- memory • 🟢 mem
- message • 🟢 msg
- metadata • 🟡 meta { data science }
- microcontroller • 🟢 mcu
- middle • 🟢 mid
- minimum • 🟢 min
- miscellaneous • 🟢 misc
- modulo • 🟢 mod
- multiplier • 🟢 mplr
- mutable • 🟡 mut { variables }
- navigation • 🟢 nav
- network • 🟢 net
- newline • 🟡 nl { endcoding }
- no • 🟡 n { only with yes }
- node • 🟡 $... { selector / DOM }
- not equal • 🟡 ne { binary operators }
- number • 🟢 num
- object • 🟢 obj
- object key • 🟡 key { only with val }
- operation • 🟡 op { binary operations }
- optional • 🟢 opt
- option • 🟢 opt
- operating system • 🟢 os
- order • 🟡 ord { data science }
- output • 🟢 out
- parameter • 🟢 param
- performance • 🟢 perf
- picture • 🟢 pic
- pixel • 🟢 px
- pointer • 🟢 ptr • 🟡 p { memory }
- position • 🟢 pos
- prediction • 🟢 pred
- preference • 🟢 pref
- previous • 🟢 prev
- process • 🟡 proc { threads }
- production • 🟢 prod
- profiler • 🟢 prof
- power • 🟡 pwr { energy }
- query • 🟢 q • 🔴 qry
- radius • 🟡 r { circles / shapes }
- random • 🟢 rand
- range • 🟢 rng
- receive • 🟢 recv
- record • 🟢 rec
- rectangle • 🟡 rect { shapes }
- reference • 🟢 ref
- regular expression • 🟢 regex • 🔴 rgx
- remote • 🟢 rem
- repository • 🟢 repo
- required • 🟢 req
- requested • 🟢 req
- result • 🟢 res
- response • 🟢 res
- return • 🟢 ret
- revision • 🟢 rev
- signed as prefix • 🟡 s { modifiers }
- semaphore • 🟡 sem { conditional operators }
- selection • 🟢 sel
- selected • 🟢 sel
- sine • 🟢 sin
- sequence • 🟢 seq
- square root • 🟢 sqrt
- source • 🟢 src
- software • 🟡 sw { computer science }
- statistic • 🟢 stat
- standard • 🟢 std
- standard input output • 🟢 stdio
- string • 🟢 str
- synchronous • sync
- synchronize • 🟢 sync
- temperature • 🟢 tmp
- temporary • 🟢 temp
- text • 🔴 txt
- time • 🟡 t
- timer • 🟢 tmr
- timestamp • 🟢 ts
- to • 🔴 2
- toggle • 🔴 tgl
- transaction • 🟢 tx
- type • 🟡 t { modifiers }
- user • 🟡 u { URLs } • 🔴 usr
- value • 🟢 val • 🟡 v { only with k }
- vector • 🟡 v { physics }
- variable • 🟢 var
- version • 🟢 v • 🔴 ver
- vertical • 🟢 ver
- white space • 🟡 ws { encoding }
- width • 🟡 w { shapes }
- window • 🟢 win
- yes • 🟡 y { only with n }