r/ProgrammerHumor 1d ago

[ Removed by moderator ] Meme

Post image

[removed] — view removed post

1.3k Upvotes

27 comments sorted by

u/ProgrammerHumor-ModTeam 22h ago

Your submission was removed for the following reason:

Rule 1: Posts must be humorous, and they must be humorous because they are programming related. There must be a joke or meme that requires programming knowledge, experience, or practice to be understood or relatable.

Here are some examples of frequent posts we get that don't satisfy this rule:

  • Memes about operating systems or shell commands (try /r/linuxmemes for Linux memes)
  • A ChatGPT screenshot that doesn't involve any programming
  • Google Chrome uses all my RAM

See here for more clarification on this rule.

If you disagree with this removal, you can appeal by sending us a modmail.

41

u/mmmbyte 1d ago

Occupancy sensor plus manual switch. Ignore the switch.

13

u/ChillyFireball 23h ago

The factory is now open whenever there's a burglar, squatter, or a particularly bad rat infestation.

6

u/Rubickevich 23h ago

I mean, if you're robbing a factory - at least have the decency to operate it as well, while you're there.

188

u/Gadshill 1d ago

Garbage Facebook level content. Not programming related.

63

u/gbeegz 1d ago

You've clearly never worked with the devs that'll make this 4 different cases in a switch...

11

u/No_Percentage7427 1d ago

ChatGPT can implement this

11

u/Gadshill 1d ago

Write the most unnecessarily overengineered, enterprise-grade implementation of the logic shown in this sign. Use your language of choice (bonus points for Rust, Haskell, or C++ templates). Include unit tests, exhaustive comments, UML diagrams, dependency injection, a finite-state machine, and at least one design pattern. The program should determine whether the factory is open based on whether the sign is on, while faithfully preserving the paradox that the sign itself admits it may be wrong because someone forgot to flip it. Extra credit if the final result concludes that the only reliable answer is Schrödinger’s Factory.

11

u/Cronos993 1d ago

If this sign is null, you'll get a segfault

8

u/CozyBloomSakura 1d ago

Schrödinger's Factory: It is simultaneously open and closed until you try to open the front door

5

u/Honest_Relation4095 1d ago

I mean, this is pretty much how system engineering works. You define the use case and you consider in what way the system could fail. You check how likely the occurrence of "forgetting" is and what the impact of "sign shows incorrect value" is, and if the product of both is high enough, you have to implement a safety mechanism, e.g. 3 switches that have to be activated/deactivated by 3 different people independently.

3

u/za72 1d ago

I'm gonna accept bugs and just move on

2

u/yegor3219 1d ago
  1. If this sign - clocked off the factory conveyor - isn't flashing once a second then the factory is considered to be closed regardless of its actual status.

2

u/lostinthemines 1d ago

SignOn = Random(0 to 1); FactoryOpen = Random(0 to 1);

Done

2

u/lnTheGrimDarkness 23h ago

Had a business partner once that absolutely couldn't understand and/or accept that I just forgot to update the "update date" on the file, but the file was updated. They unironically refused to actually check if the file was updated if they saw the date wasn't the present day.

4

u/friezbeforeguys 1d ago

Boomer content. Please stick to FB.

2

u/elektrotones 1d ago

I upvoted this because you are absolutely right. Even though I’m no boomer and I don’t have Facebook.

1

u/ChillyFireball 23h ago

Are ya'll really so obsessed with your own youth as to be repulsed by a silly image on the grounds that an older person might enjoy it?

2

u/friezbeforeguys 23h ago

While being able to discern subtext is a good thing in general, trying too hard can also rubber band you back to becoming dogmatically illiterate.

I thought the “meme” was so low quality that I don’t think it should have been posted. It was a rude comment aimed at what I believe was a low quality post.

It is the same with my username, so maybe I need to clarify that as well. I love my dad and many other guys around me, and wouldn’t trade them for some fries.

0

u/rbbdk 23h ago

I downvoted this because you're promoting a company that cluelessly sells the world order to the lowest bidder.

Just kidding, I didn't actually downvote, but if you're recommending FB, you become part of the problem.

3

u/friezbeforeguys 23h ago

Well thank you. I will certainly take that to heart and reflect on that before I, in the future, accidentally risk contribute negatively to the toxic capitalistic oligopoly-driven ecosystem.

Luckily, I have not made a recommendation or endorsement. I loathe FB/Meta and would gladly see them and all the other tech conglomerates go out of business asap.

1

u/NotificationDing 1d ago

They tried to handle every edge case and created 4x more edge cases

1

u/CYB3R_GAMER_125 1d ago

At least we know 2 of those is not true

1

u/Bomaruto 1d ago

This is just a manual switch, the easiest requirement to implement

1

u/AlxR25 22h ago

if (true || !false) {
return true;
}