List of idiomatic word pairs

I remember somewhere somewhere a dictionary of idiomatic pairs of words for programming was found.

Like get - set , open - close , allocate - free , etc.

Does anyone remember the url?

+7
idioms terminology
source share
4 answers

Code Complete has two short lists of such pairs, one for function names and one for variable names. You can search for “Use Opposites Exactly” using the Amazon function if you don't have a book.

+2
source share

Based on ergosis answer:

From code Complete 2, Chapter 11, p. 264:

Common opposites in variable names

  • Start / end
  • first / last
  • locked / unlocked
  • min / max
  • next / previous
  • old / new
  • open / closed
  • visible / invisible
  • source / target
  • source / destination
  • up down
+3
source share

I have never seen a list usually intended for programming, but PowerShell has one: Cmdlet verbs . Conjugations are highlighted for each verb where they exist.

And while most PowerShell strives for command-line consistency, it comes from standardizing these verbs, some of the pairs may be appropriate in other contexts.

+2
source share

English is not my first language, but not those antonyms , not idiomatic pairs?

On Linux, you can use wordnet to search for antonyms

sudo apt-get install wordnet

 wn open -antsv 

-ants for antonyms and v for verbs. You can also search (n | a | r) – antonym for noun | adjective | adverbs (n | a | r) – antonym for noun | adjective | adverbs (n | a | r) – antonym for noun | adjective | adverbs .

+1
source share

All Articles