Being desperate is rotten (8)
I believe the answer is:
hopeless
'being desperate' is the definition.
('hopeless' can be similar in meaning to 'desperate')
I don't understand how the rest of the clue works.
Can you help me to learn more?
(Other definitions for hopeless that I've seen before include "Despairing or futile" , "Having no reason to expect success" , "Feeling despair; very bad" , "Unachievable" , "Feeling or causing despair" .)