A humorous term used in software development to describe the situation where a series of seemingly unrelated tasks or activities must be completed in order to accomplish a primary goal or objective, often leading to distraction, frustration, and inefficiency.
"Instead of fixing the bug, he found himself yak shaving—debugging the build system, updating dependencies, and refactoring unrelated code."