English Language & Usage Asked by kalekip1 on April 6, 2021
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.
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.
Correct answer by Gnawme on April 6, 2021
Hyphenate compound adjectives for clarity of communication.
Answered by Leon Conrad on April 6, 2021
They're equivalent, as it's valid to have an open compound adjective (one with a space rather than a hyphen), and both form mean the same thing.
However:
So, it might be wise to use the hyphenated form.
Answered by Jon Hanna on April 6, 2021
When two (or more words) are to act as a single attributive adjective, you hyphenate them.
So, you must ask yourself "what type of code do I write?" - "I write object-oriented code."
Here object-oriented is a single unit that describes (adjectivally) code.
If these two words are simply part of the clause, ie, a predicative adjective, they don't need hyphenating. Think of it this way. "what is this software like?" - "This software is object oriented." In other words, "This software is oriented in an object way!"
I have found that many folk hyphenate in the latter case as well, but it's more important (for clarity's sake) to ensure you hyphenate in the former case.
Answered by Å Stuart on April 6, 2021
Whichever you choose, you should be consistent within the work that you're creating.
If you're writing an email, then all instances within that email should be the same (hyphenated or not)—the same goes for a book, or for technical documentation.
As to which to pick, I defer to the other answers.
Answered by jimbo on April 6, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP