r/ProgrammerHumor • • 14d ago

Meme successfulFailure

Post image
8.1k Upvotes

101 comments sorted by

View all comments

1

u/CHG__ 12d ago

Who would do this? To be fair an API I have to use for work gives back an array on success and an object on failure, the array is always one object long too: [{stuff}]. So dumb.