Never Eating the Cookie (thedailywtf.com)

Maciej works as a freelancer, and that frequently means picking up old PHP code that nobody wants to support. One project had been lingering for ages with key features missing. Specifically, it was supposed to make HTTP requests to other services on an interval, and use that to populate its data. "The old dev tried, but never got it working." It was Maciej's turn to give it a shot.

☕ AM Pick Copy-paste programming without reading what the code does is how you end up with HTTP requests that fetch data and then never use it. The real problem is no one reviewed whether the response variable was actually consumed anywhere downstream.

0 comments — live from bluesky

No comments yet.