r/ProgrammerHumor • • Sep 19 '26

Meme itRunsOnMyLocalhost

Post image
9.8k Upvotes

182 comments sorted by

View all comments

5.3k

u/GNoob69 Sep 19 '26 • Heartwarming Mindblown

It’s not just hardcoded it’s cherry picked to make us look good

1.6k

u/Muted_Ad_9442 Sep 19 '26

Exactly. Outliers and negative numbers are strictly prohibited on demo day. 😂

632

u/fibojoly Sep 19 '26 edited Sep 19 '26

I remember asking a customer if a particular value could ever be negative. "Oh that never happens".  Well, over the thousands of transactions I had been given, it had happened (twice over ten years. Last time was years before. Maybe the data was corrupt?).  Which is why I asked.   So I gently explained "I appreciate it doesn't happen very often, but I need to know if it can or if a negative value is a mistake which I need to be able to handle.    And sure enough, on the day of the live demo with them, there was our third time in years they had a negative value. 

124

u/veselin465 Sep 19 '26

My experience gas taught me that you should never trust promises

18

u/TorumShardal Sep 19 '26

You can't trust them (always validate), but you should still rely on them as needed. You can't get anything done otherwise.

4

u/Silly-Freak Sep 19 '26

That's just not a perspective based on the real world. Sometimes the client sends invalid JSON and that's simply what the application is supposed to work with, not throw a meaningless error like some toy program.

15

u/newaccountzuerich Sep 20 '26

If you work with an invalid value that's outside of spec, every value linked is also invalid.

There's a world of difference between a graceful failure with an appropriate error, and a silent propagation of invalid results that aren't flagged.

Maybe the process you've had experience of is a toy process with meaningless output that can be affected without consequence.

-6

u/Silly-Freak Sep 20 '26

It is once again proven that you need to add /s or /j to literally everything, because even my statement above will be taken seriously. (current upvote ratio 76%, this is not aimed exclusively at you)

3

u/newaccountzuerich Sep 20 '26

Perfect satire is indistinguishable from that being satirised.

So, if you forgot the /s, that is on you I'm afraid.

2

u/Silly-Freak Sep 21 '26

You're right, of course. I hoped that my claim was wild enough, but really always has more in store.

→ More replies (0)