this post was submitted on 04 Jun 2024
486 points (98.6% liked)

Programmer Humor

1653 readers
1 users here now

founded 2 years ago
MODERATORS
top 16 comments
sorted by: hot top controversial new old
[–] partial_accumen@lemmy.world 22 points 1 year ago* (last edited 1 year ago) (1 children)

The inversions on both inputs to the NAND gates bothers me. Wouldn't inverting both inputs as well a the output turn a NAND back into an AND gate?

[–] Fermion@feddit.nl 7 points 1 year ago (1 children)

A NAND gate with two inverted inputs is equivalent to an OR gate. The ouput is only false when both inputs are false.

[–] partial_accumen@lemmy.world 4 points 1 year ago (1 children)

You're right, it doesn't seem like it should but that checks out:

11 1

01 1

01 1

00 0

[–] AFKBRBChocolate@lemmy.world 14 points 1 year ago

It should have some kind of latch where there are two things to push and you have to do them both, or just one or the other, or whatever.

[–] Jessica@discuss.tchncs.de 12 points 1 year ago

The OR gates only have 1 input for some reason. Otherwise very cool!

[–] sukhmel@programming.dev 5 points 1 year ago

I thought Logic Gate is the one with the two guardians and one always lies and the other speaks truth. Or is that Logical Gate? 🤔

[–] samus12345@lemmy.world 4 points 1 year ago

That brought back memories!

[–] clucose@lemmy.ml 4 points 1 year ago (1 children)

Also provides steps for getting over it.

The middle bar is a perfectly adequate step all by itself

[–] ceenote@lemmy.world 3 points 1 year ago* (last edited 1 year ago)

Cool but why does that AND gate gotta be like that?

[–] lseif@sopuli.xyz 3 points 1 year ago

redundant OR gates

[–] EtherWhack@lemmy.world 2 points 1 year ago* (last edited 1 year ago)
[–] MNByChoice@midwest.social 2 points 1 year ago

I could never have a gate like that. Nerds from everywhere would be showing up and taking pictures.

[–] milicent_bystandr@lemm.ee 0 points 1 year ago

Looks illogical to me

[–] owatnext@lemmy.world 0 points 1 year ago

All I remember is my professor, circa 2015 "DIAMOND, DECISION!"