Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dsjoblom
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
1.
▲
by
dsjoblom
4y ago
Or just allow both versions (01 or 1). Edit: this works best if the form is validated client-side, otherwise you still get people wondering what is allowed in the field because there is no immediate response to input.
2.
▲
by
dsjoblom
4y ago
Have you tried this in practice? It is extremely awkward to pick a date of birth using a regular date picker. It is worse than all the options mentioned in the article. It is only appropriate for picking dates close to the current date.
3.
▲
by
dsjoblom
4y ago
The “missing integer” example is awkward, because what’s interesting here is not whether you can solve the problem with xor or plus, but whether you need two loops or just one. Edit: I guess overflow is one consideration, as mentioned in th