The OR operation takes two bits and
returns 1 if either of the bits
are 1. Otherwise, it
returns 0.
1 | 1 → 1
1 | 0 → 1
0 | 1 → 1
0 | 0 → 0
Think of it like a bucket with two holes in it. If both
holes are closed, no water comes out. If either hole is
open, or if both are open, water comes out.
When performing OR on two integers, the OR operation is
calculated on each pair of bits (the two bits at the same index in
each number).
5 | 6 // gives 7
// At the bit level:
// 0101 (5)
// | 0110 (6)
// = 0111 (7)
Actually, we don't support password-based login. Never have. Just the OAuth methods above. Why?
It's easy and quick. No "reset password" flow. No password to forget.
It lets us avoid storing passwords that hackers could access and use to try to log into our users' email or bank accounts.
It makes it harder for one person to share a paid Interview Cake account with multiple people.
“I got offers from 7/8 of the companies at which I interviewed. After not going through a formal interview process in nearly a decade, your site really helped build my confidence. You're a hero, Parker ;)
—
Zak