Skip to content

Instantly share code, notes, and snippets.

@andreiMirzac1
Forked from maxtruxa/Antonyms.md
Created August 16, 2016 21:25
Show Gist options
  • Save andreiMirzac1/44c35c65559c5d8b698618c27ff4f7bf to your computer and use it in GitHub Desktop.
Save andreiMirzac1/44c35c65559c5d8b698618c27ff4f7bf to your computer and use it in GitHub Desktop.
A list of common terms used in programming and their respective antonyms.

Antonym List

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
Create Destroy
Compile Decompile
Construct Destruct
Enable Disable
Enqueue Dequeue
Enter Leave, Exit
First Last
Freeze Unfreeze
Front Back
Get Set
Import Export
Increase Decrease
Increment Decrement
Inflate Deflate
Insert Delete
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
Read Write
Register Deregister
Select Deselect
Send Receive
Serialize Deserialize
Set Unset (e.g. a key), Clear (e.g. a bit)
SetUp TearDown
Show Hide
Start Stop
StartUp ShutDown, CleanUp (maybe)
Resume Suspend
Up Down

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

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