Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
okl
· 7y ago · 0 comments
Not much worse than zip codes with letters.
Comments
[–]
d33
7y ago
If you're trying to store numbers that might start with a zero using an integer type, you're doing it wrong anyway. A rule of thumb is to ask yourself the question: what does the result of adding two such values mean?
[–]
K2L8M11N2
7y ago
Does that mean that e.g. numeric user ID should also me strings since adding them is meaningless?
[–]
bausshf
7y ago
Nothing difficult about zip codes as long as you treat them as strings :)
[–]
carlmr
7y ago
Canada says hi.