We'll Hire Better Contractors Next Time, We Promise

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

A developer named Nona shares a horror story of a 2100-line JavaScript function written by lowest-bidder contractors. The snippet reveals misuse of JavaScript Promises — directly constructing and awaiting them inside anonymous functions — with the same broken pattern repeated multiple times throughout. The code doesn't work, and Nona's team is now stuck fixing it under crunch conditions to avoid losing contracts. A classic case of false economy: management saved money on contractors and created a much larger cleanup burden for the internal team.

2m read timeFrom thedailywtf.com
Post cover image

Sort: