What's the best way to pull dandelions?
(Psst; don't worry tech bros -- this one's secretly an allegory for you)
Most people see a dandelion grab its leaves and pull. However that's what we've done since time immemorial and wouldn't you believe; dandelions have figured it out.
The plant is particularly pernicious because it treats the leaves as relatively disposable. It just grows back.
The next group is smarter - they dig around and loosen the soil before they pull. Getting most of the roots and often having nothing grow back.
However -- the piece that's missing for these is recognition of dandelions as an indicator species. In an open field dandelions grow where it's too dark, compact or low nutrient for grass. The easiest and best solution is actually to dig a hole a couple inches around the dandelion, turn the whole clump of dirt upside down, grab the root from the bottom and shake it out from the thatch. The dandelion slips easily through the thatch, the soil is loosened and the overturned thatch decomposes and provides nutrients. Sunlight is still a potential issue but it doesn't fit the allegory.
"Okay but... I live in Circuit City on Concrete Blvd. Why do I care?"
Good question. It's an allegory for fighting bugs in your code. Pulling dandelions is resolving tickets.
They said, "the button doesn't work for me."
Test show it works so you add a toast showing what happened? Pulling leaves.
Checking the frontend code and discovering that it doesn't load the click listener in a corner case? Pulling roots.
Meeting the stakeholder and finding out that they actually meant was that the button should be a switch because they don't like the text changing to "off" when they press it? That's solving for the environment a problem lives in.
Code is cheap these days, look to solve the specification not just the surface effects.