News for hackers. Stuff that matters.
Re:German town votes ‘No’ to street names by carlmr on Monday February 04, 2019 @03:27AM (#19074769)
Another nightmare for programmers.
Re:German town votes ‘No’ to street names by hrktb on Monday February 04, 2019 @03:47AM (#19074850)
It’s fine, it’s a nightmare with or without street names.

You already shouldn’t assume streets to have names and also accept arbitrary strings.

If you really need something reliable (i.e. it needs to be accepted by an external authority or you will actually deliver goods) you can ask the user for a validated adress from an official source.

Re:German town votes ‘No’ to street names by Freak_NL on Monday February 04, 2019 @03:52AM (#19074878)
The residents of Hilgermissen are quite likely well adapted to entering 'Hilgermissen' as the street name as well as the place in any form that forces it.
Re:German town votes ‘No’ to street names by karolg on Monday February 04, 2019 @09:17AM (#19076493)
Re:German town votes ‘No’ to street names by okl on Monday February 04, 2019 @05:26AM (#19075195)
Not much worse than zip codes with letters.
Re:German town votes ‘No’ to street names by d33 on Monday February 04, 2019 @06:22AM (#19075435)
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?
Re:German town votes ‘No’ to street names by K2L8M11N2 on Monday February 04, 2019 @10:55AM (#19077299)
Does that mean that e.g. numeric user ID should also me strings since adding them is meaningless?
Re:German town votes ‘No’ to street names by bausshf on Monday February 04, 2019 @07:33AM (#19075763)
Nothing difficult about zip codes as long as you treat them as strings :)
Re:German town votes ‘No’ to street names by carlmr on Monday February 04, 2019 @05:31AM (#19075219)
Canada says hi.
Re:German town votes ‘No’ to street names by jobigoud on Monday February 04, 2019 @03:47AM (#19074849)