I found this sentence in my programming book:
You might be better off thinking of the block and the method as coroutines, which transfer control back and forth between themselves.
What does be better off mean?
I found this sentence in my programming book:
You might be better off thinking of the block and the method as coroutines, which transfer control back and forth between themselves.
What does be better off mean?
The NOAD reports that the meaning of "be better off" is "be in a better position, especially in financial terms."
The sentence you wrote could be considered equivalent of the following sentence.
It would be better to think of the block and the method as coroutines, which transfer control back and forth between themselves.
It means it "might be a better idea to think of the block and the method as coroutines .."
The writer is suggesting an alternate approach to thinking about the subject, and expressing it as if it were your choice. It's a common English idiom.
In this context it means "You might gain a greater advantage" or "You might be well-served by."
The author is encouraging you to think about the problem in the way he has described.