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.

Revisions

  1. @maxtruxa maxtruxa revised this gist Jun 28, 2016. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -52,7 +52,7 @@ Positive | Negative
    `select` | `deselect`
    `send` | `receive`
    `serialize` | `deserialize`
    `set` | `unset` (e.g. a key), `clear` (e.g. a bit)
    `set` | `unset` (e.g. a key), `clear` (e.g. a bit), `get` (e.g. a value)
    `set up` | `tear down`
    `show` | `hide`
    `start` | `stop`
    @@ -62,6 +62,10 @@ Positive | Negative

    # Remarks

    ## Motivation

    Using sensible, consistent wording in APIs improves readability, usability and greatly helps new users getting started. There is nothing more annoying than wondering what a function call is supposed to do while reading (someone else's or your own) code.

    ## 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
  2. @maxtruxa maxtruxa revised this gist Jun 28, 2016. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,8 @@ Positive | Negative
    `advance` | `retreat`
    `allocate` | `deallocate` (correct), `free` (common)
    `assemble` | `disassemble`
    `assign` | `deassign` (e.g. a task)
    `associate` | `dissociate`
    `attach` | `detach`
    `begin` | `end`
    `bind` | `unbind`
    @@ -20,6 +22,7 @@ Positive | Negative
    `enable` | `disable`
    `enqueue` | `dequeue`
    `enter` | `leave`, `exit`
    `expand` | `collapse` (e.g. a tree view), `contract`
    `first` | `last`
    `freeze` | `unfreeze`
    `front` | `back`
    @@ -36,7 +39,7 @@ Positive | Negative
    `link` | `unlink`
    `load` | `unload` (e.g. a module), `store` (e.g. a value)
    `lock` | `unlock`
    `minimum` | `maximum`
    `maximum` | `minimum`
    `new` | `old`
    `next` | `previous`
    `open` | `close`
    @@ -74,6 +77,3 @@ If you still feel like you need an antonym; possibilities include but are not li
    ## "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 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`
  3. @maxtruxa maxtruxa revised this gist Jun 28, 2016. 1 changed file with 5 additions and 4 deletions.
    9 changes: 5 additions & 4 deletions Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -11,11 +11,11 @@ Positive | Negative
    `attach` | `detach`
    `begin` | `end`
    `bind` | `unbind`
    `create` | `destroy`
    `compile` | `decompile`
    `compress` | `decompress`
    `connect` | `disconnect`
    `construct` | `destruct`
    `create` | `destroy`
    `do` | `undo`
    `enable` | `disable`
    `enqueue` | `dequeue`
    @@ -37,13 +37,15 @@ Positive | Negative
    `load` | `unload` (e.g. a module), `store` (e.g. a value)
    `lock` | `unlock`
    `minimum` | `maximum`
    `next` | `previous`
    `new` | `old`
    `next` | `previous`
    `open` | `close`
    `push` | `pop`
    `raise` | `lower`
    `read` | `write`
    `reference` | `derefence` (e.g. a pointer), `unreference` (e.g. an object in the case of reference counting)
    `register` | `deregister`
    `resume` | `suspend`
    `select` | `deselect`
    `send` | `receive`
    `serialize` | `deserialize`
    @@ -52,7 +54,6 @@ Positive | Negative
    `show` | `hide`
    `start` | `stop`
    `start up` | `shut down`, `clean up` (maybe)
    `resume` | `suspend`
    `up` | `down`
    `upper` | `lower`

    @@ -72,7 +73,7 @@ If you still feel like you need an antonym; possibilities include but are not li

    ## "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.
    In some cases careful usage of these prefixes can 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`
  4. @maxtruxa maxtruxa revised this gist Mar 30, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -66,7 +66,7 @@ By using `initialize` only for simple initializations that don't need any clean
    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).
    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`.

  5. @maxtruxa maxtruxa revised this gist Mar 30, 2016. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -72,4 +72,7 @@ If you still feel like you need an antonym; possibilities include but are not li

    ## "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.
    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`
  6. @maxtruxa maxtruxa revised this gist Mar 30, 2016. 1 changed file with 57 additions and 57 deletions.
    114 changes: 57 additions & 57 deletions Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -1,74 +1,74 @@
    # Antonym List
    *Note: The table headings (positive/negative) are not necessarily correct.*
    *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)
    `SetUp` | `TearDown`
    `Show` | `Hide`
    `Start` | `Stop`
    `StartUp` | `ShutDown`, `CleanUp` (maybe)
    `Resume` | `Suspend`
    `Up` | `Down`
    `Upper` | `Lower`
    `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
    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`.
    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.
  7. @maxtruxa maxtruxa revised this gist Mar 30, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -24,6 +24,7 @@ Positive | Negative
    `Freeze` | `Unfreeze`
    `Front` | `Back`
    `Get` | `Set`
    `Grant` | `Revoke`
    `Head` | `Tail`
    `Import` | `Export`
    `Increase` | `Decrease`
  8. @maxtruxa maxtruxa revised this gist Jul 13, 2015. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -16,13 +16,15 @@ Positive | Negative
    `Compress` | `Decompress`
    `Connect` | `Disconnect`
    `Construct` | `Destruct`
    `Do` | `Undo`
    `Enable` | `Disable`
    `Enqueue` | `Dequeue`
    `Enter` | `Leave`, `Exit`
    `First` | `Last`
    `Freeze` | `Unfreeze`
    `Front` | `Back`
    `Get` | `Set`
    `Head` | `Tail`
    `Import` | `Export`
    `Increase` | `Decrease`
    `Increment` | `Decrement`
    @@ -38,6 +40,7 @@ Positive | Negative
    `New` | `Old`
    `Open` | `Close`
    `Push` | `Pop`
    `Raise` | `Lower`
    `Read` | `Write`
    `Register` | `Deregister`
    `Select` | `Deselect`
    @@ -50,6 +53,7 @@ Positive | Negative
    `StartUp` | `ShutDown`, `CleanUp` (maybe)
    `Resume` | `Suspend`
    `Up` | `Down`
    `Upper` | `Lower`

    # Remarks

  9. @maxtruxa maxtruxa revised this gist Jul 9, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,7 @@ Positive | Negative
    `Increment` | `Decrement`
    `Inflate` | `Deflate`
    `Inject` | `Eject`
    `Insert` | `Delete`
    `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)
  10. @maxtruxa maxtruxa revised this gist May 19, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,7 @@ Positive | Negative
    `Bind` | `Unbind`
    `Create` | `Destroy`
    `Compile` | `Decompile`
    `Compress` | `Decompress`
    `Connect` | `Disconnect`
    `Construct` | `Destruct`
    `Enable` | `Disable`
  11. @maxtruxa maxtruxa revised this gist May 8, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    # Antonym List
    *Note: The table headings (positive/negative) are not necessarily correct.*

    Positive | Negative
    ------------|------------
  12. @maxtruxa maxtruxa revised this gist May 8, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -25,6 +25,7 @@ Positive | Negative
    `Increase` | `Decrease`
    `Increment` | `Decrement`
    `Inflate` | `Deflate`
    `Inject` | `Eject`
    `Insert` | `Delete`
    `Install` | `Uninstall`
    `Link` | `Unlink`
  13. @maxtruxa maxtruxa revised this gist Apr 28, 2015. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -60,4 +60,8 @@ By using `Initialize` only for simple initializations that don't need any clean

    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`.
    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.
  14. @maxtruxa maxtruxa revised this gist Apr 27, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -9,8 +9,10 @@ Positive | Negative
    `Assemble` | `Disassemble`
    `Attach` | `Detach`
    `Begin` | `End`
    `Bind` | `Unbind`
    `Create` | `Destroy`
    `Compile` | `Decompile`
    `Connect` | `Disconnect`
    `Construct` | `Destruct`
    `Enable` | `Disable`
    `Enqueue` | `Dequeue`
  15. @maxtruxa maxtruxa revised this gist Apr 18, 2015. 1 changed file with 8 additions and 2 deletions.
    10 changes: 8 additions & 2 deletions Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -6,21 +6,26 @@ Positive | Negative
    `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` | `Exit`
    `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`
    @@ -32,12 +37,13 @@ Positive | Negative
    `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)
    `Suspend` | `Resume`
    `Resume` | `Suspend`
    `Up` | `Down`

    # Remarks
  16. @maxtruxa maxtruxa revised this gist Apr 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -14,8 +14,8 @@ Positive | Negative
    `Enqueue` | `Dequeue`
    `Enter` | `Exit`
    `First` | `Last`
    `Front` | `Back`
    `Freeze` | `Unfreeze`
    `Front` | `Back`
    `Get` | `Set`
    `Import` | `Export`
    `Increase` | `Decrease`
  17. @maxtruxa maxtruxa revised this gist Apr 17, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -15,6 +15,7 @@ Positive | Negative
    `Enter` | `Exit`
    `First` | `Last`
    `Front` | `Back`
    `Freeze` | `Unfreeze`
    `Get` | `Set`
    `Import` | `Export`
    `Increase` | `Decrease`
  18. @maxtruxa maxtruxa revised this gist Apr 16, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -51,4 +51,4 @@ By using `Initialize` only for simple initializations that don't need any clean

    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 feel like you need an antonym anyway; possibilities include but are not limited to: `Exit` (very common in conjunction with `Init`), `Reset`, `Finalize`, `Terminate`.
    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`.
  19. @maxtruxa maxtruxa revised this gist Apr 16, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -47,7 +47,7 @@ By using `Initialize` only for simple initializations that don't need any clean
    (`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 a antonym ;).
    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).

  20. @maxtruxa maxtruxa revised this gist Apr 16, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -44,7 +44,7 @@ Positive | Negative
    ## 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 it's own antonym) you can
    (`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 a antonym ;).
  21. @maxtruxa maxtruxa revised this gist Apr 16, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -44,7 +44,7 @@ Positive | Negative
    ## 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
    you can
    (`Initialize` as it's 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 a antonym ;).
  22. @maxtruxa maxtruxa revised this gist Apr 16, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -49,6 +49,6 @@ 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 a 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 verb anyway).
    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 feel like you need an antonym anyway; possibilities include but are not limited to: `Exit` (very common in conjunction with `Init`), `Reset`, `Finalize`, `Terminate`.
  23. @maxtruxa maxtruxa revised this gist Apr 16, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -49,4 +49,6 @@ 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 a 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 verb anyway).

    If you feel like you need an antonym anyway; possibilities include but are not limited to: `Exit` (very common in conjunction with `Init`), `Reset`, `Finalize`, `Terminate`.
  24. @maxtruxa maxtruxa revised this gist Apr 16, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -45,6 +45,7 @@ Positive | Negative
    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
    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 a antonym ;).

  25. @maxtruxa maxtruxa created this gist Apr 16, 2015.
    51 changes: 51 additions & 0 deletions Antonyms.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,51 @@
    # Antonym List

    Positive | Negative
    ------------|------------
    `Acquire` | `Release`
    `Add` | `Remove` (e.g. an item), `Subtract` (arithmetic)
    `Advance` | `Retreat`
    `Allocate` | `Deallocate` (correct), `Free` (common)
    `Attach` | `Detach`
    `Begin` | `End`
    `Create` | `Destroy`
    `Construct` | `Destruct`
    `Enable` | `Disable`
    `Enqueue` | `Dequeue`
    `Enter` | `Exit`
    `First` | `Last`
    `Front` | `Back`
    `Get` | `Set`
    `Import` | `Export`
    `Increase` | `Decrease`
    `Increment` | `Decrement`
    `Insert` | `Delete`
    `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`
    `Set` | `Unset` (e.g. a key), `Clear` (e.g. a bit)
    `SetUp` | `TearDown`
    `Show` | `Hide`
    `Start` | `Stop`
    `StartUp` | `ShutDown`, `CleanUp` (maybe)
    `Suspend` | `Resume`
    `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
    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 a antonym ;).

    If you feel like you need an antonym anyway; possibilities include but are not limited to: `Exit` (very common in conjunction with `Init`), `Reset`, `Finalize`, `Terminate`.