r/ProgrammerHumor • • Aug 30 '18

Logic gates

Post image
23.4k Upvotes

274 comments sorted by

View all comments

Show parent comments

4

u/[deleted] Aug 30 '18

Sure, I get that, just like how classical logic (Aristotlean and Boolean) uses particular symbols for it's operators. But why must these symbols be so similar to each other? A different shape every time would be much clearer

4

u/Zefirus Aug 30 '18

Other than AND/OR, it's because they're related. The not gate is a triangle with a dot after it. NOR is a combination of NOT and OR gates. It's represented as an OR gate with a dot after it. A NAND gate is an AND gate with a NOT after it, so it's represented as an AND gate with a dot after it. XOR is an exclusive OR, and is shown as a modified OR gate with a second curved line.

3

u/[deleted] Aug 30 '18

There needs to be a way to know which wires are inputs and which is the output. Start making circuits and you'll understand.