Skip to content

Instantly share code, notes, and snippets.

@FabianoGK
Forked from maxtruxa/Antonyms.md
Created June 3, 2016 12:56
Show Gist options
  • Save FabianoGK/100e941c95cd0641057b5f79e3d671b8 to your computer and use it in GitHub Desktop.
Save FabianoGK/100e941c95cd0641057b5f79e3d671b8 to your computer and use it in GitHub Desktop.
A list of common terms used in programming and their respective antonyms.

Antonym List

Note: The table headings (positive/negative) are not necessarily meaningful.

Positive Negative
acquire release
add remove (e.g. an item), subtract (arithmetic)
advance retreat
allocate deallocate (correct), free (common)
assemble disassemble
attach detach
begin end
bind unbind
create destroy
compile decompile
compress decompress
connect disconnect
construct destruct
do undo
enable disable
enqueue dequeue
enter leave, exit
first last
freeze unfreeze
front back
get set
grant revoke
head tail
import export
increase decrease
increment decrement
inflate deflate
inject eject
insert delete (e.g. from a collection), extract (e.g. in a stream)
install uninstall
link unlink
load unload (e.g. a module), store (e.g. a value)
lock unlock
minimum maximum
next previous
new old
open close
push pop
raise lower
read write
register deregister
select deselect
send receive
serialize deserialize
set unset (e.g. a key), clear (e.g. a bit)
set up tear down
show hide
start stop
start up shut down, clean up (maybe)
resume suspend
up down
upper lower

Remarks

Initialize

There is no precise antonym for initialize and I don't think there has to be: By using initialize only for simple initializations that don't need any clean up code (initialize as its own antonym) you can

  1. establish a convention through that initialization routines without a corresponding clean up routine can be easily recognized, and
  2. circumvent the need for an antonym ;).

For routines that do not fall into this category, select another verb from the table above (most of the time there is a more descriptive alternative anyway).

If you still feel like you need an antonym; possibilities include but are not limited to: exit (very common in conjunction with init), reset, finalize, terminate.

"De-" vs. "Un-"

Both prefixes (de- and un-) can be defined as a reversal of action. Most of the time the prefix de- is used for verbs while un- is used for adjectives. There are many exceptions to this rule though. In some cases careful usage of these prefixes can be used to avoid ambiguity. For example, "he was unregistered" is ambiguous because it can mean either "he was not registered" or "his registration was removed", while "he was deregistered" is not.

TODO

assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment