News for hackers. Stuff that matters.

dsjoblom

Re:Asking for a date of birth (2013) on Thursday June 16, 2022 @10:34AM (#31766535)
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.
Re:Asking for a date of birth (2013) on Thursday June 16, 2022 @10:31AM (#31766505)
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.
Re:That XOR Trick on Wednesday June 15, 2022 @01:25PM (#31756257)
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 the article.