Worse is when you find those dead ends while working for somebody who doesn't understand software. I've seen consultants stiffed for weeks of billable hours for researching technologies they were specifically asked to research.
"In the end, it was faster to roll our own than integrate X, and we'll be able to move quicker in the future."
"Then why did you waste all that time playing with X???"
"In the end, it was faster to roll our own than integrate X, and we'll be able to move quicker in the future."
"Then why did you waste all that time playing with X???"