Poorly defined task
“Here, write a routine to report a value stored in a data file.”
There’s enough vagueness there to drive an 18-wheel tractor trailer through!
You could probably solve it in 5 minutes flat, but then they start describing the constraints your routine needs to work within. So you accommodate those, then they add another heap of constraints.
Sure, as a manager I can give somebody the run around so hard, I can easily squander a full week of effort while ensuring zero accomplishment. What does that prove, other than hostile management?
Actually that describes my last job. They wanted a little robot device to crawl up a rope and accomplish a particular task. The issue was the junior team developed a hydraulic solution that “should work,” but the farther out it got the heavier its deployed tether became, until it got so heavy the hydraulic drive motor literally stalled. The solution made it out 75% the distance needed.
My task: “invent a better machine that actually works, and also works 2x as fast, but you have to use only the parts already bought, and it can’t cost anything because the entire $50,000 budget is already gone.”
Even despite the onerous constraints there still exist possibilities for creative solutions, but on the other hand, management no longer wants a solution: just a scapegoat. You can never get anywhere if management thwarts your every move. As it so happened, the firing decision came 4 days past the 90 day probationary period, and I took my wrongful dismissal complaint directly to small claims court. I know for a fact that their tardiness cost them a good $25,000 more, both for my settlement plus their expensive legal representation who convinced them that fighting was futile.
The little line crawler bot? Never got delivered. So I’m pretty sure the original fee got refunded in shame…