In computer-related areas, the English language offers a broad vocabulary. Therefore, naming functions and methods can be a difficult task. This document aims to be a comprehensive reference which will help you finding the most appropriate word in all situations.
If you want to contribute, we'd be happy to include your changes. Please fork this repository and then send in a pull request.
- arg, argument
- attr, attribute
- const, constant
- def, default
- func, function
- ident, identifier
- param, parameter
- spec, specifier
- var, variable
- action
- class
- context
- dependency
- ident, identifier
- inheritance
- inst, instance
- itf, interface
- memb, member
- meth, method
- mod, module
- obj, object
- priv, private
- prop, property
- protected
- public
- published
- res, resource
- routine
- self
- shared
- this
- hidden
- mutable
- transient
- volatile
- bucket
- el, elem, element
- i, idx, index
- it, item
- it, iter, iterator
- slot
- col, column
- row
- d, day
- date
- h, hour
- hrs, hours
- m, min, minute
- m, month
- mins, minutes
- time
- y, year
- pid, processId
- proc, process
- needle
- haystack
- off, ofs, offset
- pos, position
- occurrence
- child
- node
- parent
- path
- box
- dialog
- entry
- expose
- geometry
- opt, option
- widget
- action
- batch
- bulk
- job
- mass
- op, operation
- proc, process
- progress
- routine
- task
- block
- bundle
- context
- entity
- group
- session
- transaction
- caller
- cb, callback
- context
- hook
- sender
- sig, signal
- subscr, subscriber
- addr, address
- allocator
- arena
- block
- buf, buffer
- capacity
- chunk
- context
- mem, memory
- pool
- ptr, pointer
- refcnt, reference count
- segment
- size
- storage
- chunk
- conn, connection
- host
- ip
- packet
- payload
- socket
- cookie
- sess, session
- caption
- descr, description
- headline
- name
- pg, page
- title
- directory
- eof, endOfFile
- file
- io
- path
- buf, buffer
- ptr, pointer
- str, string
- prev, next
- bug
- crash
- err, error, errno
- exc, exception
- failure
- fix
- prio, priority
- st, status
- tc, test case
- tb, test bundle
- ts, test suite
- msg, message
- req, request
- resp, response
- out, output
- res, result
- eol, endOfLine
- bol, beginningOfLine
- capacity
- cnt, count
- len, length
- off, offset
- pos, position
- size
- cur, current
- cur, cursor
- db, database
- qry, query
- record
- snapshot
- symtab, symbol table
- syms, symbols
- sec, s
- msec
- usec
- time
- diff, difference
- tz, timezone
- buf, buffer
- c, ch: character
- cstr: C string
- len, length
- s, str: string
- sz: zero-terminated string
- env, environment
- val, value
- depend
- inherit
- attach
- bind
- call
- conn, connect
- detach
- disconn, disconnect
- emit
- invoke
- notify
- observe
- pass
- register
- restore
- subscribe
- trigger
- unregister
- unsubscribe
- commit
- conn, connect
- disconn, disconnect
- populate
- qry, query
- grant
- deny
- assert
- expect
- bundle
- escape
- obfuscate
- sanitise
- serialise
- wrap, unwrap
- enlarge
- extend
- grow
- resize
- compress
- minimize
- shorten
- shrink
- rd, round
- rnd, random, randomize
- append
- bind
- concat, concatenate
- format
- insert
- resize
- trim
- add
- bwd, backward
- each, foreach
- enum, enumerate
- find
- fwd, forward
- iter, iterate
- list
- lookup
- pop
- push
- remove
- rev, reverse
- rpt, repeat
- rwd, rewind
- appendChild
- collapse
- createElement
- expand
- getChildren
- hasChildren
- setAttribute
- assign
- display
- render
- alloc, allocate
- dispose
- free
- invalidate
- link
- new
- ref, reference
- relate
- release
- retain
- steal
- unlink
- unref, unreference
- accept
- addHandler, e.g. addEventHandler
- bind
- download
- handshake
- listen
- read
- recv, receive
- send, e.g. sendAuthRequest
- upload
- write
- decode
- decrypt
- encode
- encrypt
- mangle
- activate
- draw
- hide
- paint
- update
- continue
- handle
- hold
- invoke
- launch
- proceed
- process
- redo
- request
- reset
- respond
- restart
- resume
- run
- start
- stop
- suspend
- undo
- exec, execute
- kill
- launch
- restart
- fetch
- get, e.g getName, getById
- grab
- obtain
- read
- recv, receive
- request
- retr, retrieve
- deliver
- send
- transfer
- transmit
- accumulate
- aggregate
- collect
- each, foreach
- getIter, getIterator
- iter, iterate
- key
- list
- map
- next
- prev
- reduce
- valid
- value
- walk
- can
- has
- is
- belongsTo
- hasOne
- hasMany
- cmp, compare
- contains
- diff
- eq, equals, isEqual
- matches
- rewind
- tell
- peek
- append
- lock
- open
- read
- unlock
- write
- acquire
- alloc, allocate
- boot, bootstrap
- bootstrap
- build
- constr, construct
- create
- ctor, constructor
- decl, declare
- init, initialize
- install
- instantiate
- load, e.g. loadFile
- make
- new
- start
- cleanup
- clean
- clear
- close
- commit
- del, delete
- destroy
- destruct
- dispose
- drop
- dtor, destructor
- erase
- exit
- finalize
- free
- invalidate
- kill
- purge
- release
- rem, remove
- stop
- term, terminate
- uninstall
- unlink
- wipe
- upd, update
- upgr, upgrade
- refr, refresh
- touch (updates timestamp to match current time)
- apply
- combine
- concat, concatenate
- join
- merge
- cpy, copy
- clone
- dup, duplicate
- assign
- set
- pr, print
- echo
- write
- disp, display
- extract
- filter
- find, e.g. findRoute, rfind, reverseFind
- lookup
- match
- read
- scan
- search
- seek
- assert
- catch
- debug
- except
- expect
- getCode
- getFile
- getLine
- getMessage
- getTrace
- pass
- raise
- throw
- try
- read
- save
- store
- Abstract, e.g. AbstractManufacturer
- Batch
- Behavior
- ConcreteFilter
- Debugger
- Decorator
- Facade, e.g. PurchasingFacade
- Facade
- Factory
- Figure
- Filter
- FrontController: addPreFilter, addPostFilter, handleRequest
- Handler, e.g. RequestHandler
- Implementation
- Instance
- Interface
- Listener
- Manager
- Middleware
- Operation
- Processor
- Provider
- Proxy
- Registry
- Reporter
- Service
- Singleton
- Storage
- Utils
- EventDispatcher
- Observer
- Chain, e.g. FilterChain
- Cluster
- Collection
- Container
- Repository
- Suite
- Component
- Kit
- Module
- Package
- Iterator: current, key, next, rewind, valid
- IteratorAggregate
- Observable: attach, detach, notify
- Processor
- Serializable
- Vehicle
- Customer
- RentalAction
- isReturned
- isVehicleAvailable
- rentVehicle
- sellVehicle
- returnVehicle
- startEngine
- stopEngine
- returnDate
- markVehicleReturned
- rentalActions
- VehicleNotAvailableException
- MileageLimitExceededException
- connecting
- idling
- initialising
- lingering
- pending
- processing
- reading
- waiting
- writing
- attached
- closed
- connected
- idle
- initialized
- listening
- paused
- readable
- stalled
- writable
- Administrator
- Author
- Collaborator
- Contributor
- Editor
- Guest
- Manager
- Member
- Moderator
- Publisher
- Subscriber
- User
- Viewer
This chapter introduces some rules for commit messages and provides you with a few sample sentences which you can use in your own commits.
First of all, it's advisable to generally use the present tense
in the header in which you only give an abstract description of
your changes. For consistency, terminate all header messages
with a point. An exception is non-linguistic contents such as
commands, e.g. s/needle/replace/
.
In the body you should go into detail. If appropriate, may also want to give some background information. Unlike the header, it's valid to use the past tense in the body.
As for object-oriented projects, the general structure of the header is:
Module: Message
When a commit affects multiple modules, you can enumerate them:
Module1, Module2: Message
Alternatively, the enumeration may be omitted if there are too many.
- Delete X
- Get rid of X
- Drop X (e.g. Drop support for X)
- Fix X
- Fix bug
- Spotted with X (e.g. Valgrind) This should go into the description.
- Make use of X.
- Merge X and Y
- Use X in favour of Y
- Use X instead of Y
- Change X
- Cosmetic changes
- Enhance X
- Facilitate X
- Improve X
- Restore X (e.g. Restore old behaviour)
- Revert X
- Revise X
- Rework X
- Synchronise with upstream changes
- Trivial change(s)
Sorted by severity:
- Trace
- Debug
- Informational
- Warning
- Error
- Critical
- Fatal
Each language has a certain number of words which appears to be specific to it. This chapter collects unique technical vocabulary grouped by the language it primarily occurs in. The purpose is to help you discovering interesting concepts and to give you some inspiration for making up your own ingenious class, variable and function names.
__autoload
__construct
__unset
- trim
- implode
- explode
- needle
- haystack
- strcmp, sometimes: streq
- argv, argc
- strlen
- strcpy
- strdup
- ctor
- dtor
- cstr
__init__
__new__
- map
- filter
- bind
- newtype
- pairs, ipairs
- tonumber
- puts
- upcase
- times
- bean
- servlet
- datasource
- Tim Nieradzik
- Will Hilton
Most OO-related terms were taken from the book "PHP Design Patterns" by Stephan Schmidt. Contributions were received from:
- Zachary Halbrecht
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.