I'd like to express that I went to great efforts to fix an [adjective] bug in my code. Neither "pernicious" nor "persistent" quite match the quality I'm trying to describe. Is there a word that means "hard to eradicate" but not necessarily that the problem itself was severe? The problems caused by the bug were fairly insignificant, but fixing it was a huge pain.
You could say: "I went to great efforts to fix a stubborn bug in my code."
Google defines stubborn as:
difficult to move, remove, or cure.
holding fast; characterized by keeping a firm hold (often followed by of):
- a tenacious grip on my arm; tenacious of old habits.
- a tenacious memory.
pertinacious, persistent, stubborn, or obstinate.
"I went to great efforts to fix a tenacious bug in my code."
Obstinate is a good word for this, as it describes something that is undesirable and persistent. From Dictionary.com:
- firmly or stubbornly adhering to one's purpose, opinion, etc.; not yielding to argument, persuasion, or entreaty.
- characterized by inflexible persistence or an unyielding attitude; inflexibly persisted in or carried out: obstinate advocacy of high tariffs.
- not easily controlled or overcome: the obstinate growth of weeds.
- not yielding readily to treatment, as a disease.
If you want a $2 metaphor, you can try Obdurate (Dictionary.com):
- unmoved by persuasion, pity, or tender feelings; stubborn; unyielding.
- stubbornly resistant to moral influence; persistently impenitent: an obdurate sinner.
Resilient would be appropriate.
: characterized or marked by resilience: as a : capable of withstanding shock without permanent deformation or rupture b : tending to recover from or adjust easily to misfortune or change
Definition 'b' seems especially apt.
In science and medicine literature people often talk about bacteria (something undesirable, like a computer bug) being resilient to efforts used to try and eradicate it.
When I have longstanding bugs in my code they end up entrenched in all sorts of different processes.
1 [with object] Establish (an attitude, habit, or belief) so firmly that change is very difficult or unlikely: 'ageism is entrenched in our society'
Programming bugs and math problems can be recalcitrant, at times. The word comes from a root calc-, calx heel (of a donkey or horse, for example). Thus, a stubborn problem that 'kicks back'. I first heard this from an MIT math prof describing a type of differential equation, and merriam-webster led me to the definition ;)