Re:Show HN: I created a URL shortener that can be entirely h...
by chrismorgan on Monday November 16, 2020 @11:57AM
(#25113965)
Any particular reason why you wrote 1 rather than 0?
[ Parent
| on HN ]
Re:Show HN: I created a URL shortener that can be entirely h...
by Jhsto on Monday November 16, 2020 @12:19PM
(#25114274)
Not really. Copied it from somewhere else where the placeholder value was 7. 1 came to my mind before 0. Zero seems like it could be UB.
Re:Show HN: I created a URL shortener that can be entirely h...
by chrismorgan on Monday November 16, 2020 @12:29PM
(#25114407)
Nah, zero just means “redirect after zero seconds”, meaning immediately. You definitely want zero.