Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
okl
on Feb 4, 2019
|
parent
|
context
|
favorite
| on:
German town votes ‘No’ to street names
Not much worse than zip codes with letters.
d33
on Feb 4, 2019
|
next
[–]
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
on Feb 4, 2019
|
parent
|
next
[–]
Does that mean that e.g. numeric user ID should also me strings since adding them is meaningless?
bausshf
on Feb 4, 2019
|
prev
|
next
[–]
Nothing difficult about zip codes as long as you treat them as strings :)
carlmr
on Feb 4, 2019
|
prev
[–]
Canada says hi.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: