hyphenation - "object-oriented" vs "object oriented"


When should we use "object-oriented" and when "object oriented" when talking about programming?


An example:



Why should I start writing object oriented code?



I personally think that there should be a hyphen, because "oriented" connects to the word "object", but I am not sure.



Answer



The Chicago Manual of Style notes:



With the exception of proper nouns (such as United States) and compounds formed by an adverb ending in ly plus an adjective, it is never incorrect to hyphenate adjectival compounds [of which object-oriented is one] before a noun. When such compounds follow the noun they modify, hyphenation is usually unnecessary, even for adjectival compounds that are hyphenated in Webster’s (such as well-read or ill-humored).



So:



Smalltalk is said to be a pure object-oriented language.



But:



These characteristics make a programming language object oriented.



Comments

Popular posts from this blog

verbs - "Baby is creeping" vs. "baby is crawling" in AmE

commas - Does this sentence have too many subjunctives?

time - English notation for hour, minutes and seconds

grammatical number - Use of lone apostrophe for plural?

etymology - Origin of "s--t eating grin"

etymology - Where does the phrase "doctored" originate?

word choice - Which is the correct spelling: “fairy” or “faerie”?