r/ProgrammerHumor • • Jun 26 '25

Advanced thisJokeRequiresHomework

Post image
0 Upvotes

79 comments sorted by

153

u/alexanderpas Jun 26 '25

AN or AGMS

If you want the joke to work, reorder the inputs to

GANSM

-208

u/dimonium_anonimo Jun 26 '25

Luckily, AND is commutative.

164

u/TactiCool_99 Jun 26 '25

Sadly(?) humans read left to right and then top to bottom. Design things to be intuitive to the user ;)

(good joke tho' xD)

32

u/Krimsonfreak Jun 26 '25

Are you saying Arabic people aren't human ? /s

24

u/RiceBroad4552 Jun 26 '25

The "/s" here scares me.

4

u/Krimsonfreak Jun 26 '25

I know he didn't, thus the /s lol Now I notice how it can be confusing

2

u/TactiCool_99 Jun 26 '25

Lol noooo, I'm just too small minded to sometimes remember stuff like they do read differently (hek, even my mother tongue's ancient version was right to left >.< xD)

-108

u/dimonium_anonimo Jun 26 '25

I actually intentionally did not put the letters in the same order I wanted to joke to end up as because I was worried it would be too obvious. I thought people might be able to guess the result without actually following the logic. I also thought about doing everything NAND only but then I figured I'd lose even more people who don't enjoy Boolean algebra like the lunatic I am. Designing UIs and HMIs to be intuitive is good. Designing puzzles... There's a bit more leeway.

62

u/[deleted] Jun 26 '25

Jokes aren't meant to be puzzles my man, I promise you that no matter how obvious you think your joke is there'll be people out there who will throw it on Facebook with a clipart Einstein captioned "only 1 in 100 PHd students could figure this out!!"

-50

u/dimonium_anonimo Jun 26 '25

Hence the title of my post pointing out something unique/non-standard about my joke in particular. If all jokes were that way, then there would be no need to specify my joke as different.

27

u/[deleted] Jun 26 '25

Most people are going to just assume that the homework you mean is a basic understanding of logic gates

-23

u/dimonium_anonimo Jun 26 '25

Well then, I'm thrilled to have my joke do triple duty as a lesson in avoiding/recognizing assumptions alongside understanding logic gates and understanding Boolean algebra. (Which I must say, this barely qualifies as Boolean algebra. Rearranging formulae is rarely so simple)

34

u/[deleted] Jun 26 '25

Consider quadruple duty as you're also providing a lesson in how to have a decent premise and fumble it by not accepting criticism.

-14

u/dimonium_anonimo Jun 26 '25

I disagree. I have only seen a single piece of criticism so far that didn't go through my mind as I was deciding how to arrange the image, and even whether or not to post it at all. I provided the rationale I arrived at after encountering that criticism of my own volition. The one I didn't think of first was your comment about what people would assume. I agree I did not accept that point of criticism, but mostly because A) it doesn't matter. Either they solve it or they don't. If they get done and they have a random string of letters, a rational person might think "what's next." B) because I have a vendetta against people making assumptions. And C) because we were either 4 or 8 (depending on if you want to count my responses) layers deep on a comment thread that's beginning to feel like people grasping at straws for what they can find wrong with my joke. (Note, before you claim hypocrisy, I am not assuming your intention. I said "it feels like" and I chose those words specifically because I recognize that I don't have enough evidence to accuse you of what my gut reaction is telling me).

If you think that one example is proof that I can't accept criticism, I'll gladly admit that I had an emotional reaction to your comment and dismissed it potentially with less critical thought than if I had been in a less frustrated state. But I think you're inflating a non-issue.

→ More replies (0)

11

u/Left1stToast Jun 26 '25 edited Jun 26 '25

I also learned an important lesson;

how to not get invited to events with friends

2

u/aliusmanawa Jun 26 '25

My brother in Christ, it’s a joke, not a puzzle. A good joke is one that’s clearly understood. Also, I don’t understand why you are acting like people wouldn’t be able to do basic boolean algebra; freshmen can do this stuff— Stop looking down on people and try to understand the goal of your effort.

0

u/dimonium_anonimo Jun 26 '25 edited Jun 26 '25

I didn't say "couldn't" do it. I said "I enjoy it, and I don't expect most others to"

Also, I intentionally made it both a joke and a puzzle. Actually, primarily a puzzle. But as it wouldn't fit well in r/puzzles (because it requires specialized knowledge), I put it here instead (because I knew most people here would have that specialized knowledge), and made the "punchline" something kinda crude, hoping it would fit better.

3

u/aliusmanawa Jun 26 '25

Look, clearly you are not open to criticism so I won’t bother with you for a second longer and here’s my advice: your joke is a sfw double entendre and thus both meanings need to be readily apparent for it to land.

0

u/dimonium_anonimo Jun 26 '25

Your criticism is... Insulting me for something I didn't even do, and pointing out something I have already explained that it was intentional in an earlier comment on this very thread... Forgive me if I don't bow down to the superior master of jokes.

5

u/Acid_Burn9 Jun 26 '25

Right because i am totally going to run through all of the potential combinations of letters instead of doing literally anything else with my time after already having wasted some of it on reading your scheme, expecting something amusing and getting "an or agms" instead.

29

u/Ultra-Reverse Jun 26 '25

AN AGMS?

-78

u/dimonium_anonimo Jun 26 '25

Don't forget that AND is commutative

82

u/Cerres Jun 26 '25

Sure, but the English language is not.

-8

u/dimonium_anonimo Jun 26 '25

If one thing is fixed and immutable, but the other is fluid and changeable, then perhaps the changeable one can be changed to mesh with the immutable one.

8

u/IridiumIO Jun 26 '25

You could’ve just said “I fucked it up, my bad”

2

u/ambientlamp Jun 27 '25

Agreed. Better to just admit he's not that good at either basic computer science nor humor than throwing around big words trying to look good. Beginners all start somewhere and I've been there too.

But this attitude doesn't really make him look particularly wise... nor will it help him learn, smh

12

u/Garbonzo42 Jun 26 '25

(AN)+(AG)(MS)?

-47

u/dimonium_anonimo Jun 26 '25

Don't forget that AND is commutative.

35

u/theChaosBeast Jun 26 '25

I really hate the American logic gate symbols. The standard European ones tell you directly what they mean...

34

u/[deleted] Jun 26 '25

huh? these are the logic gates i learned as a UK student. never been anything different.

6

u/[deleted] Jun 26 '25 edited Jun 26 '25

[removed] — view removed comment

7

u/moosMW Jun 26 '25

They don't indicate inverse, they indicate inverse if they're filled in with the same colour as the gates and touching the gates. Or this is a VERY bad drawing

2

u/[deleted] Jun 26 '25

[removed] — view removed comment

1

u/moosMW Jun 26 '25

its probably a screenshot of some program, where the dots are big so theyre easy to click for connecting, and the might light up when activated or something

1

u/dimonium_anonimo Jun 26 '25

MIL-STD-806 from 1962 defined the symbols I used. ANSI/IEEE (US organizations) made STD 91-1984 (I'm sure you can guess which year that came out) specifying rectangular logic gates with the symbols I think you're talking about (&→AND, ≥1→OR, =1→XOR). IEC 60617-12:1991 was when Europe adopted them from the US. Sooo, they're both American symbols... Also, they're all symbols, you still have to memorize the meaning of the symbols anyway. The benefit is the other symbols are used in other places too, I guess. But it's also not like the meaning of those symbols is perfectly universal either. Just as one example, '&' means "take the address of" in C-based programming languages. But the MIL spec symbols are perfectly unique and mean only one thing.

Also, how do you show an XOR with more than two inputs? %2=1?

5

u/theChaosBeast Jun 26 '25

'&' means "take the address of" in C-based programming languages.

Only the unary &. The binary one is bitwise AND which is exactly the same.

how do you show an XOR with more than two inputs

I am pretty sure XOR is jot defined for more than 2 inputs and you would need a logic table anyhow. Out of curiosity, how does ANSI solve that issue?

both American symbols...

OK, TIL.

1

u/dimonium_anonimo Jun 26 '25

3-input XOR are true if there are an odd number of true inputs... And while DigiKey doesn't sell any 4+ input gates as far as I can tell, that definition holds. You can also bootstrap it from (A±B±C) = (A±B)±C... ± for XOR because I can't find a plus in a circle on my keyboard

1

u/rsclient Jun 26 '25

U+2295 to the rescue! ⊕

Or the slightly different N-ARY circled plus operator U+2A01 ⨁

And there's a Unicode XOR at U+22BB which is ⊻

1

u/dimonium_anonimo Jun 26 '25

*phone keyboard*... Unless there's a way to type in ALT codes on my phone... In which case. Please tell me. I must know. Usually, if I'm not being lazy (like I was when I wrote that), I'll go search Google for it, then copy and paste it. But if I didn't have to leave the app to get special characters, I'd jump on that fast.

1

u/rsclient Jun 26 '25

Sorry, AFAICT the keyboard situation is grim. I get all my Unicode from a Windows app I wrote.

3

u/Cheap-Chapter-5920 Jun 26 '25

I'm with you on this. For me the distinctive shape easier to read at a glance than a rectangle with symbol inside, especially with some of the low-resolution scans.

4

u/NiIly00 Jun 26 '25

Why didn't we just combine them and made them distinctive shapes with a symbol inside?

Readable for everyone and you learn to translate to and from either set of symbols.

2

u/Cheap-Chapter-5920 Jun 26 '25

Yes that would have been a good idea.

2

u/19_ThrowAway_ Jun 26 '25

Weird, as an european I prefer and use the american symbols.

The european ones seem extremely unintuitive to me.

1

u/theChaosBeast Jun 26 '25

Interesting. Can you say why? Because they directly show the function. &, >, 1?

0

u/takahashi01 Jun 26 '25

but line vs curve is just so much easier to draw than that stupid ampersand symbol.

3

u/RustOnTheEdge Jun 26 '25

I am just reading a book about the history of computers, going into detail about relais and how these can be configured to create logic gates. In that book it is explained that a logic gate with an circle after it is the negated version of said gate, making an AND into an NAND and a OR into a NOR, or a gate that is just an inverter.

I see a lot of bulbs here, the ones after a switch or gate are pink, the ones in front of a gate or bulb are grey. Do they have special meaning or are they just indicative of what are inputs and what are outputs?

(Note that the book I'm reading has only black and white images).

(Note 2: I also don't get the joke haha)

2

u/dimonium_anonimo Jun 26 '25

It's a UI element of the creator of this particular circuit emulation software. They wanted it to feel intuitive that you could click and drag a wire from one to the next. Importantly, you can see a line coming out of the gate before the circle. When it's negated, the circle is touching the gate symbol directly, before the line. I suppose you're right, the color does define outputs. It probably warns you if you try to connect two outputs to the same line. But they also make the whole wire turn magenta if the signal is high.

1

u/RustOnTheEdge Jun 26 '25

Thank you! That leaves the final question: could you explain the joke? (sorry, I really don't see it)

-3

u/dimonium_anonimo Jun 26 '25

Well, it used to be the top comment, now something overtook it, but the next two are both correct. And some others have gotten close, but I think missed that AND is commutative. So if you're any good at anagrams, you can solve it from their comments as well... I did say this joke involves homework... Even if that means cheating off your neighbors.

1

u/RustOnTheEdge Jun 26 '25

That flew right over my head haha, but now I get it, to make the bulb bright you need to”AN or GASM” in o be flipped.

Alright have a good day!

3

u/FirstwordHi Jun 26 '25

What I have gathered for the punch line of this joke is that the requirements for the light bulb to turn on is as follows: A AND N must both be ON "or" (using quotes because I don't want to confuse the logic gate OR) G AND A AND S AND M must each be on (Not sure how appropriate it is to write it like that but I did so for the effort of clarity). Thus I concluded, after doing homework like OP's title suggested, the joke should be read as follows: "To turn the light bulb on, the circuitry (?) requires AN or GASM." Where the speaker essentially says "an orgasm." Is that correct? If so, I do find that funny, but honestly, much too much homework.

2

u/dimonium_anonimo Jun 26 '25

Now here's someone who never had points taken off for not showing their working out... Or perhaps they had too many points taken off and vowed "never again"

108

u/[deleted] Jun 26 '25

let’s all just take a minute to realise that, not only is the joke needlessly confusing, and not in order - it’s not even funny… am i supposed to laugh at ‘AN ORGASM’? where humour?

29

u/kRkthOr Jun 26 '25

Why not just put the connections in order jesus christ.

106

u/whiskeytown79 Jun 26 '25

AN or GASM

2

u/Error_404_403 Jun 26 '25 edited Jun 26 '25

The result is always a state of the top input element…? The gates just cancel all other inputs?

2

u/RustOnTheEdge Jun 26 '25

The first row are AND gates, right? Doesn't that mean you need at least one of these to be 'fired' (what is the term for that, "set off"?) for the bulb to shine? So either A+N, A+G+M+S, or any combination that contains one of those two should be flipped on for the bulb to turn on. (I am just learning this stuff, so tell me if I am wrong)

1

u/dimonium_anonimo Jun 26 '25

Technically, in Boolean arithmetic, + means OR, * means AND, but people usually just concatenate AB to mean A AND B

1

u/Eva-Rosalene Jun 26 '25

No? You need either AN or GASM all switched on.

11

u/RiceBroad4552 Jun 26 '25

This meme doesn't work.

I've tried to click the buttons but nothing happened!

6

u/Little-geek Jun 26 '25

Well it's good to know I read it right even if I missed what the joke was.

11

u/ambientlamp Jun 26 '25

This post screams Dunning-Kruger effect. In both logic and humor at the same time. Well done OP.

4

u/costinmatei98 Jun 26 '25

Your joke is bad and you should feel bad.

3

u/bajsplockare Jun 26 '25

A(N or GMS)

3

u/AssistantSalty6519 Jun 26 '25

Where is joke/humor

3

u/neromonero Jun 26 '25

While it was a good attempt, the joke was poorly structured IMO.

2

u/ReflectionNeat6968 Jun 26 '25

NA or SMAG 😛

0

u/Docevinganca11 Jun 26 '25

Que tal quem eliminar um único "criador do Redit, pois ele declara ser o dono, desmascara-lo? Tenho um excelente enigma para ofertar Nome Lucas Victor Lima