Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Latest commit

 

History

History
330 lines (265 loc) · 7.34 KB

README.md

File metadata and controls

330 lines (265 loc) · 7.34 KB

Abbreviations in code

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).

Guide

Colored circles before the abbr mean the degree of recommendation:

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

List

Numbers

  • 🔴 2 • to

A

  • 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

B

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

C

  • 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

D

  • 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

E

  • enable • 🟢 en
  • environment • 🟢 env
  • equal • 🟡 eq { binary operations }
  • error • 🟢 err
  • etc • 🟢 etc
  • event • 🟢 e
  • executable • 🟢 exe
  • expression • 🟢 expr
  • extension • 🟢 ext

F

  • factory • 🟢 fac
  • file descriptor • 🟢 fd
  • figure • 🟢 fig
  • for example 🟢 e.g.
  • format • 🟢 fmt
  • function • 🟢 func • 🔴 f • 🔴 fn
  • function pointer • 🟢 fp

G

  • generate • 🟢 gen
  • 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
  • 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

J

  • javascript • 🟢 js

K

L

  • 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 }

M

  • 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 }

N

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

O

  • 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

P

  • 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 }

Q

  • query • 🟢 q • 🔴 qry

R

  • 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

S

  • 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

T

  • temperature • 🟢 tmp
  • temporary • 🟢 temp
  • text • 🔴 txt
  • time • 🟡 t
  • timer • 🟢 tmr
  • timestamp • 🟢 ts
  • to • 🔴 2
  • toggle • 🔴 tgl
  • transaction • 🟢 tx
  • type • 🟡 t { modifiers }

U

  • user • 🟡 u { URLs } • 🔴 usr

V

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

W

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

X

Y

  • yes • 🟡 y { only with n }

Z

Symbols

Others



License


Go to index