403
u/a-walking-bowl Jul 03 '21
You shall NOT pass!
131
u/TheMogician Jul 03 '21
if (object == balrog)
{
pass = False
}
18
1
0
Jul 03 '21
[deleted]
17
2
u/SpkyBdgr Jul 03 '21
Seeing that you left off the ; in your if statement, I want to add that you also don't need your curly braces. I think?
0
Jul 03 '21
[deleted]
1
1
u/Cormandragon Jul 03 '21
But where does he fight again after turning white?
Gotta put the whole thing in a while(Balrog.alive) loop
13
Jul 03 '21
so if I don't want to pass I'll pass
2
u/Amoniakas Jul 03 '21
That's the curse of gates gate, when you want to pass it you can't but when don't want to pass you'll pass it automatically.
848
u/moldor_the_flatulent Jul 03 '21
It's a LOGIC GATE !!!
24
Jul 03 '21
(人 •͈ᴗ•͈)(✷‿✷)
25
Jul 03 '21
[removed] — view removed comment
11
Jul 03 '21
-- infinite fizzbuzz with the power of lazy evaluation fizz :: Int -> String fizz n | n `mod` 15 == 0 = "FizzBuzz" | n `mod` 3 == 0 = "Fizz" | n `mod` 5 == 0 = "Buzz" | otherwise = show n fizzbuzz = map fizz [1..] -- make it infinite -- display main :: IO() main = mapM_ putStrLn fizzbuzz7
16
0
152
81
u/Kneasle Jul 03 '21
Ah I do love some good 1-input nor gates...
14
u/CodeLobe Jul 03 '21
If we assume the single input goes to both terminals... It's just a not gate.
3
4
4
11
u/the_d3f4ult Jul 03 '21
gate is sus
17
13
26
38
u/ManosVanBoom Jul 03 '21
The bus input to the top half makes the bottom half basically irrelevant right?
20
4
1
u/Imyslef Jul 04 '21
The 'nor' gate has its inputs conncted because they probably ran out of 'not's and the 'or' gate has its inputs connected because they needed a buffer to amplify the signal's voltage and they ran out of 'not's so the design is technically correct.
28
13
33
Jul 03 '21
GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD GET OUT OF MY HEAD
5
73
22
6
u/LPO_Tableaux Jul 03 '21
Unreadable, OR only takes one parameter, making it useless
1
Jul 03 '21
NOR can sometimes take one parameter. OR can too, to properly implement pipeline delay in some designs.
But I think I recall it's bad practice or something. I got a bad grade in those classes
20
u/Lekoaf Jul 03 '21
Guess I’m not enough of a programmer to see what’s funny about this. Can someone explain?
24
u/wite_noiz Jul 03 '21
The symbols are logic gates (geddit?!) used in electrical engineering.
4
u/WikiSummarizerBot Jul 03 '21
A logic gate is an idealized model of computation or physical electronic device implementing a Boolean function, a logical operation performed on one or more binary inputs that produces a single binary output. Depending on the context, the term may refer to an ideal logic gate, one that has for instance zero rise time and unlimited fan-out, or it may refer to a non-ideal physical device (see Ideal and real op-amps for comparison).
[ F.A.Q | Opt Out | Opt Out Of Subreddit | GitHub ] Downvote to remove | v1.5
1
5
Jul 03 '21
The gate has a bunch of logic gate symbols on it. It’s been a while since I tried figuring out how processors do addition and subtraction so I may be very wrong, but I believe the triangle is a NOT (flips the bit sent to it), and the arches with flat bottoms are AND gates (0 if the inputs are different, 1 if they are the same). I don’t know about the curved base ones.
2
u/natziel Jul 04 '21
They are not, nand, and nor gates :)
1
Jul 04 '21
What’s the usual shape for “and” and “or” gates?
2
u/natziel Jul 04 '21
They don't have the little circle at the end
1
Jul 04 '21
Oh. I didn’t interpret that as a circle, I just thought it was a leftover of the manufacturing process or something. Thanks!
0
11
10
5
Jul 03 '21
On a side note can’t someone just pick the latch by putting their hand through the gate?
7
u/SomeAnonymous Jul 03 '21
Given that the logic gates all form very nicely spaced footholds, I don't think this gate is a serious deterrent to entry.
2
u/t-rich-92 Jul 03 '21
It appears to be a mag-lock. The top right of the gate appears to have an electromagnet (the silver pieces), and it looks like the button/keypad/card reader is on the wall on the left side of the photo.
8
4
u/ManosVanBoom Jul 03 '21
That's true love right there. It may not .make a lot of sense but is beautiful to behold.
4
4
4
4
u/Xx_Jean-Yves_xX Jul 03 '21
Why did I saw the funny amog bean character before realizing these are logic gates?
4
6
3
3
Jul 04 '21
Congratulations u/PIXELING69 ! Your post was the top post on r/ProgrammerHumor today! (07/04/21)
Top Post Counts: r/ProgrammerHumor (1)
This comment was made by a bot
2
2
u/SailorFuzz Jul 03 '21
I am so bothered by the mismatched alignment of the top half vs the bottom half.
Look at it, on the top half the symbols go: up, down, up, down, up.
But on the bottom its: down, up, down, up, up.
That one misplaced symbol on the bottom..... I cant unsee it and it irrationally bothers me so much.
2
2
2
2
u/IleriumX Jul 03 '21
I don't get it help
1
Jul 04 '21
You're on this sub but don't know what logic gates are?
1
u/IleriumX Jul 04 '21 edited Jul 04 '21
Nah I'm a Beginner Programmer
Also why are you lurking through my post history
2
2
Jul 04 '21
AND?
1
2
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
Jul 03 '21
Ignoring the ones, the 16 bit password in decimal is 9747
Great way to hide a gate code lmaooo. Decimal 10011000010011 (A B' C' D E F' G' * H' I ' J K' L' M N)
Tell me if I got my work wrong. Still a student. Treated single input gates like just nots.
1
1
u/Wherearemylegs Jul 03 '21
What’s with all the logic flipping on the NANDs? That’s just an OR now
1
u/odnish Jul 03 '21
No, its a NOR gate
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
u/trotski94 Jul 03 '21
Its cool, but those are some nice looking foot holes now. Practically a ladder.
1
1
1
1
1
1
1
u/JNSStudios_YT Jul 03 '21
My baboon brain thought this was an Among Us joke until I noticed what sub it was on.
1
1
u/DrTankHead Jul 03 '21
Those how this gate has convenient climbing holes built right into them. Great design. /some
I mean I love the design factor but this ultimately doesn't keep anything out, so what's the point?
1
1
u/The_Irish_Rover26 Jul 03 '21
And?
2
u/DeebsterUK Jul 03 '21
1
u/WikiSummarizerBot Jul 03 '21
A logic gate is an idealized model of computation or physical electronic device implementing a Boolean function, a logical operation performed on one or more binary inputs that produces a single binary output. Depending on the context, the term may refer to an ideal logic gate, one that has for instance zero rise time and unlimited fan-out, or it may refer to a non-ideal physical device (see Ideal and real op-amps for comparison).
[ F.A.Q | Opt Out | Opt Out Of Subreddit | GitHub ] Downvote to remove | v1.5
1
u/The_Irish_Rover26 Jul 03 '21
1
u/WikiSummarizerBot Jul 03 '21
The AND gate is a basic digital logic gate that implements logical conjunction (∧) from mathematical logic – it behaves according to the truth table above. A HIGH output (1) results only if all the inputs to the AND gate are HIGH (1). If none or not all inputs to the AND gate are HIGH, LOW output results. The function can be extended to any number of inputs.
[ F.A.Q | Opt Out | Opt Out Of Subreddit | GitHub ] Downvote to remove | v1.5
1
u/The-Requiem Jul 03 '21
Why is everyone freaking out? it's just a society named Logic AND it's just a regular gate to their compound. A Logic Gate
1
1
1
1
Jul 03 '21
Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it Don’t think it Don’t say it
1
1
1
1
1
1
1
u/curiosityLynx Jul 03 '21
Missed opportunity: Could have had the gates actually interact with each other.
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
0
241
Jul 03 '21
[removed] — view removed comment
51
u/ErionFish Jul 03 '21
They ran out of not gates and didn’t have time to call Texas Instruments to get some more shipped out, so they made do with what they have saying “I’ll fix it before production”
→ More replies (15)71
u/IAmNotNathaniel Jul 03 '21
I know, it's so close to being satisfying! If they hadn't done it with the AND/NAND I wouldn't have thought anything of it.
→ More replies (2)
2.0k
u/FoundOnTheRoadDead Jul 03 '21
Seems like a logical way to design it, actually.