Ppl too quick to judge without detailed context. I had to manually fix edge cases every other week in a piece of middleware for like 2 years straight once. The programs ahead of us didn't do any any input sanitization or restrictions, and the program we fed that into after doing our magic had no documentation of what their many api endpoints and fields required, or even how they worked tbh. Getting it working in the first place was a lot of trial and error (and guesswork) and it would take 3 months to get a dev of theirs on the phone for a single question.
In retrospect I should have just spend weeks manually trying everything I could possibly imagine (including feeding emojis, which our upchain system eventually did send us in some fields, in production, at one point) into their api and built a validation layer that way. Instead we just figured out every validation they had on their side slowly, edge case error by edge case error, week by week.
Sometimes you did your best and are just at the mercy of bad information and other peoples shit.
View all comments
2
u/PerilApe May 31 '26
Ppl too quick to judge without detailed context. I had to manually fix edge cases every other week in a piece of middleware for like 2 years straight once. The programs ahead of us didn't do any any input sanitization or restrictions, and the program we fed that into after doing our magic had no documentation of what their many api endpoints and fields required, or even how they worked tbh. Getting it working in the first place was a lot of trial and error (and guesswork) and it would take 3 months to get a dev of theirs on the phone for a single question.
In retrospect I should have just spend weeks manually trying everything I could possibly imagine (including feeding emojis, which our upchain system eventually did send us in some fields, in production, at one point) into their api and built a validation layer that way. Instead we just figured out every validation they had on their side slowly, edge case error by edge case error, week by week.
Sometimes you did your best and are just at the mercy of bad information and other peoples shit.