I wrote the following question in another StackExchange website:
If I want to save and retrieve an object, should I create another class to handle it, or it would be better to do that in the class itself?
Is it better to say it as:
If I want to save and retrieve an object, should I create another class to handle it, or I'd better to do that within the class itself?
I thought the second is better because it is in accord with the first sentence of the OR conjunction (both begin with "I").
In general, are they equivalent? I mean "it would be better.." and "I'd better…"? Which is more common?
Best Answer
Both are not quite right.
"It would be better" is how you would phrase a declarative sentence - a statement of fact. To ask a question, start with the question word ("Would it be better...?"). This makes the whole question of the contraction unnecessary :)
But if you still want to know a bit about "it would" read on:
1) The correct contraction for "it would" is "it'd". I'd means "I would", or "I had", depending on the context. For example, "I'd better..." Would be "I had better...", meaning that I should do something. "I'd like..." means "I would like..."
2) "It'd" is not very common in written English (although it is common in spoken English). As a general rule, I would use "it would" 99% of the time.