MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/ocvboa/funny_gate/h3wpia0/?context=3
r/ProgrammerHumor • u/PIXELING69 • Jul 03 '21
244 comments sorted by
View all comments
2.0k
Seems like a logical way to design it, actually.
0 u/[deleted] Jul 03 '21 [deleted] 194 u/[deleted] Jul 03 '21 NOR 9 u/circorum Jul 03 '21 How about !a ^ !b -1 u/fakehistorychannel Jul 03 '21 the fact that this is the same as a ^ b bothers me beyond comprehension 7 u/circorum Jul 03 '21 *a v bDe morgan's laws(a operation b). Now negate a, b, the operation, and the parentheses' result. So basically everything.E.g. (a v b) = !(!a ^ !b) 3 u/fakehistorychannel Jul 03 '21 v? 0 u/[deleted] Jul 03 '21 [deleted] → More replies (1) → More replies (1) 3 u/DuffMaaaann Jul 04 '21 edited Jul 04 '21 Depends, because in most programming languages, ^ (caret) denotes the XOR operator, not the AND operator.The AND operator uses the ∧ (Wedge) symbol, not the caret symbol.For XOR, a ^ b == !a ^ !b. For AND, De Morgan rules hold true of course. → More replies (2) 278 u/blending-tea Jul 03 '21 XOR NOT 121 u/IHeartBadCode Jul 03 '21 XNOR 139 u/somebunnny Jul 03 '21 edited Jul 23 '21 If only it was at Bill’s house.Have you seen Gates’ gates gate? 68 u/Mr_SunnyBones Jul 03 '21 Also , when he's paying for it ; Bill Gates Gates Gate Bill. 35 u/AmateurPoster Jul 03 '21 The scandal when the paper finds it would be the Bill Gates Gates Gate Billgate. 18 u/[deleted] Jul 03 '21 And the hush money might be Bill Gates Gates Gate Billgate bill. 7 u/Keysar_Soze Jul 04 '21 And how you walk to the bank to deposit that money would be the Bill Gates Gates Gate Billgate bill gait. 5 u/ICAA Jul 04 '21 We're getting close to r/wordavalanche territory, not that I'd like to gate keep. 0 u/[deleted] Jul 03 '21 [deleted] 10 u/wizardwes Jul 03 '21 I thought Pokemon 9 u/vancity- Jul 03 '21 ROOFIES, I CHOOSE YOU! → More replies (1) 16 u/vige Jul 03 '21 It would be even better if he had multiple. 14 u/deijjji303 Jul 03 '21 oh I get it..have you seen gate's gates gates? 6 u/[deleted] Jul 03 '21 just in case you forget your key and need foot holds to climb over. 5 u/[deleted] Jul 03 '21 I know this is a joke, but those logic gates are actually making for some pretty convenient foothold for fence-hopping. 7 u/OMTIMUELKA Jul 03 '21 OR are they?
0
[deleted]
194 u/[deleted] Jul 03 '21 NOR 9 u/circorum Jul 03 '21 How about !a ^ !b -1 u/fakehistorychannel Jul 03 '21 the fact that this is the same as a ^ b bothers me beyond comprehension 7 u/circorum Jul 03 '21 *a v bDe morgan's laws(a operation b). Now negate a, b, the operation, and the parentheses' result. So basically everything.E.g. (a v b) = !(!a ^ !b) 3 u/fakehistorychannel Jul 03 '21 v? 0 u/[deleted] Jul 03 '21 [deleted] → More replies (1) → More replies (1) 3 u/DuffMaaaann Jul 04 '21 edited Jul 04 '21 Depends, because in most programming languages, ^ (caret) denotes the XOR operator, not the AND operator.The AND operator uses the ∧ (Wedge) symbol, not the caret symbol.For XOR, a ^ b == !a ^ !b. For AND, De Morgan rules hold true of course. → More replies (2) 278 u/blending-tea Jul 03 '21 XOR NOT 121 u/IHeartBadCode Jul 03 '21 XNOR
194
NOR
9 u/circorum Jul 03 '21 How about !a ^ !b -1 u/fakehistorychannel Jul 03 '21 the fact that this is the same as a ^ b bothers me beyond comprehension 7 u/circorum Jul 03 '21 *a v bDe morgan's laws(a operation b). Now negate a, b, the operation, and the parentheses' result. So basically everything.E.g. (a v b) = !(!a ^ !b) 3 u/fakehistorychannel Jul 03 '21 v? 0 u/[deleted] Jul 03 '21 [deleted] → More replies (1) → More replies (1) 3 u/DuffMaaaann Jul 04 '21 edited Jul 04 '21 Depends, because in most programming languages, ^ (caret) denotes the XOR operator, not the AND operator.The AND operator uses the ∧ (Wedge) symbol, not the caret symbol.For XOR, a ^ b == !a ^ !b. For AND, De Morgan rules hold true of course. → More replies (2)
9
How about !a ^ !b
-1 u/fakehistorychannel Jul 03 '21 the fact that this is the same as a ^ b bothers me beyond comprehension 7 u/circorum Jul 03 '21 *a v bDe morgan's laws(a operation b). Now negate a, b, the operation, and the parentheses' result. So basically everything.E.g. (a v b) = !(!a ^ !b) 3 u/fakehistorychannel Jul 03 '21 v? 0 u/[deleted] Jul 03 '21 [deleted] → More replies (1) → More replies (1) 3 u/DuffMaaaann Jul 04 '21 edited Jul 04 '21 Depends, because in most programming languages, ^ (caret) denotes the XOR operator, not the AND operator.The AND operator uses the ∧ (Wedge) symbol, not the caret symbol.For XOR, a ^ b == !a ^ !b. For AND, De Morgan rules hold true of course. → More replies (2)
-1
the fact that this is the same as a ^ b bothers me beyond comprehension
7 u/circorum Jul 03 '21 *a v bDe morgan's laws(a operation b). Now negate a, b, the operation, and the parentheses' result. So basically everything.E.g. (a v b) = !(!a ^ !b) 3 u/fakehistorychannel Jul 03 '21 v? 0 u/[deleted] Jul 03 '21 [deleted] → More replies (1) → More replies (1) 3 u/DuffMaaaann Jul 04 '21 edited Jul 04 '21 Depends, because in most programming languages, ^ (caret) denotes the XOR operator, not the AND operator.The AND operator uses the ∧ (Wedge) symbol, not the caret symbol.For XOR, a ^ b == !a ^ !b. For AND, De Morgan rules hold true of course. → More replies (2)
7
*a v b
De morgan's laws
(a operation b). Now negate a, b, the operation, and the parentheses' result. So basically everything.
E.g. (a v b) = !(!a ^ !b)
3 u/fakehistorychannel Jul 03 '21 v? 0 u/[deleted] Jul 03 '21 [deleted] → More replies (1) → More replies (1) 3 u/DuffMaaaann Jul 04 '21 edited Jul 04 '21 Depends, because in most programming languages, ^ (caret) denotes the XOR operator, not the AND operator.The AND operator uses the ∧ (Wedge) symbol, not the caret symbol.For XOR, a ^ b == !a ^ !b. For AND, De Morgan rules hold true of course. → More replies (2)
3
v?
0 u/[deleted] Jul 03 '21 [deleted] → More replies (1) → More replies (1)
→ More replies (1)
Depends, because in most programming languages, ^ (caret) denotes the XOR operator, not the AND operator.
^
The AND operator uses the ∧ (Wedge) symbol, not the caret symbol.
∧
For XOR, a ^ b == !a ^ !b. For AND, De Morgan rules hold true of course.
a ^ b == !a ^ !b
→ More replies (2)
278
XOR NOT
121 u/IHeartBadCode Jul 03 '21 XNOR
121
XNOR
139
If only it was at Bill’s house.
Have you seen Gates’ gates gate?
68 u/Mr_SunnyBones Jul 03 '21 Also , when he's paying for it ; Bill Gates Gates Gate Bill. 35 u/AmateurPoster Jul 03 '21 The scandal when the paper finds it would be the Bill Gates Gates Gate Billgate. 18 u/[deleted] Jul 03 '21 And the hush money might be Bill Gates Gates Gate Billgate bill. 7 u/Keysar_Soze Jul 04 '21 And how you walk to the bank to deposit that money would be the Bill Gates Gates Gate Billgate bill gait. 5 u/ICAA Jul 04 '21 We're getting close to r/wordavalanche territory, not that I'd like to gate keep. 0 u/[deleted] Jul 03 '21 [deleted] 10 u/wizardwes Jul 03 '21 I thought Pokemon 9 u/vancity- Jul 03 '21 ROOFIES, I CHOOSE YOU! → More replies (1) 16 u/vige Jul 03 '21 It would be even better if he had multiple. 14 u/deijjji303 Jul 03 '21 oh I get it..have you seen gate's gates gates?
68
Also , when he's paying for it ; Bill Gates Gates Gate Bill.
35 u/AmateurPoster Jul 03 '21 The scandal when the paper finds it would be the Bill Gates Gates Gate Billgate. 18 u/[deleted] Jul 03 '21 And the hush money might be Bill Gates Gates Gate Billgate bill. 7 u/Keysar_Soze Jul 04 '21 And how you walk to the bank to deposit that money would be the Bill Gates Gates Gate Billgate bill gait. 5 u/ICAA Jul 04 '21 We're getting close to r/wordavalanche territory, not that I'd like to gate keep.
35
The scandal when the paper finds it would be the Bill Gates Gates Gate Billgate.
18 u/[deleted] Jul 03 '21 And the hush money might be Bill Gates Gates Gate Billgate bill. 7 u/Keysar_Soze Jul 04 '21 And how you walk to the bank to deposit that money would be the Bill Gates Gates Gate Billgate bill gait. 5 u/ICAA Jul 04 '21 We're getting close to r/wordavalanche territory, not that I'd like to gate keep.
18
And the hush money might be Bill Gates Gates Gate Billgate bill.
7 u/Keysar_Soze Jul 04 '21 And how you walk to the bank to deposit that money would be the Bill Gates Gates Gate Billgate bill gait. 5 u/ICAA Jul 04 '21 We're getting close to r/wordavalanche territory, not that I'd like to gate keep.
And how you walk to the bank to deposit that money would be the Bill Gates Gates Gate Billgate bill gait.
5 u/ICAA Jul 04 '21 We're getting close to r/wordavalanche territory, not that I'd like to gate keep.
5
We're getting close to r/wordavalanche territory, not that I'd like to gate keep.
10 u/wizardwes Jul 03 '21 I thought Pokemon 9 u/vancity- Jul 03 '21 ROOFIES, I CHOOSE YOU! → More replies (1)
10
I thought Pokemon
9 u/vancity- Jul 03 '21 ROOFIES, I CHOOSE YOU! → More replies (1)
ROOFIES, I CHOOSE YOU!
16
It would be even better if he had multiple.
14 u/deijjji303 Jul 03 '21 oh I get it..have you seen gate's gates gates?
14
oh I get it..
have you seen gate's gates gates?
6
just in case you forget your key and need foot holds to climb over.
I know this is a joke, but those logic gates are actually making for some pretty convenient foothold for fence-hopping.
7 u/OMTIMUELKA Jul 03 '21 OR are they?
OR are they?
2.0k
u/FoundOnTheRoadDead Jul 03 '21
Seems like a logical way to design it, actually.