Live data from Hacker News

Falsehoods Programmers Believe About Phone Numbers (2016)

github.com

181–190 of 209 posts

Re: Falsehoods Programmers Believe About Phone Numbers (2016)

#181

Alright, guess I'll be using email verification

As long as you don't try to validate the email address I entered. The list of gotchas for email address parsing is impressive too. (e.g. "Cool Address"@example.store is a valid email)

You should validate any email addresses, just keep in mind that proper validation requires you to attempt to send an email to it and check if the user received it.

Re: Falsehoods Programmers Believe About Phone Numbers (2016)

#182
post #110

Earlier quoted context omitted.

Not that I downvoted, but the attitude annoys me. As a developer you have two options: 1) Do nothing and support all valid addresses (that your mail system can handle) 2) Spend development time to make your system not support all valid addresses. Why do you spend development effort to make your software worse ?

3) Realize that undervalidation of input can create opportunities to introduce backdoors into your system. 4) Realize that the added benefit of supporting weird formats are not worth the time to verify that it actually works . As someone who works on an email client, I can absolutely tell you that using IP address literals and quoted localparts are more trouble than its worth. Chances are, the libraries you use can't…

OK, try to get my email system to accept yourname@3com.com

Hint: I believe domain names cannot begin with digits.

Re: Falsehoods Programmers Believe About Phone Numbers (2016)

#183

Here's a good one: All phone numbers can be reached using tone dialing. (I know of at least one phone number to which one can connect only using pulse dialing.)

How is that even possible?

The origins of telecommunications automation. https://en.wikipedia.org/wiki/Pulse_dialing

Re: Falsehoods Programmers Believe About Phone Numbers (2016)

#184
post #98

Earlier quoted context omitted.

Yup. I mean, every programmer I know considers stuff like this to be very interesting trivia to learn and apply. But even if you know this stuff, putting the knowledge to use often involves a series of battles against your PMs and managers and maybe even customers, who either don't know it, have their own vision, or just follow what everyone else does. (Getting a product to work correctly is as much an exercise of di…

I remember a discussion on the Linux kernel list years ago - and I believe Linus himself at one point insisted that names with less than three characters shouldn't be accepted, as they must surely be invalid. I pointed out that when I was a student there was another student with a full name consisting of just a single letter. No first name, no last name, just that letter. And the best thing - the student loans bank's…

"MySQL ... Its name is a combination of "My", the name of co-founder Michael Widenius's daughter..."

I've also met a few "Jo"s in my time.

Re: Falsehoods Programmers Believe About Phone Numbers (2016)

#185
post #107

Earlier quoted context omitted.

These might be valid but nobody uses them and nobody will complain if you do not support them.

But, you know, I have seen one or two such email addresses. So somebody do use them.

does

Re: Falsehoods Programmers Believe About Phone Numbers (2016)

#186
post #167

"Falsehoods programmers believe about..." * Names: https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-... * REST APIs: http://slinkp.com/falsehoods-programmers-believe-about-apis.... * Fonts/typefaces: https://github.com/RoelN/Font-Falsehoods Collection of falsehoods: https://github.com/kdeldycke/awesome-falsehood

Timezooooooones

Tom Scott recently did a good piece on a section of Denmark that constantly shifts timezones: https://www.youtube.com/watch?v=yRz-Dl60Lfc

In general, the Earth is a really lousy clock.

Re: Falsehoods Programmers Believe About Phone Numbers (2016)

#187

IF the description of the falsehood includes the line "Obviously, this isn't necessarily true." I am going to go out on a limb and suggest that programmers don't really believe it - at any rate I would like documentation of programmers believing that people have only one phone number. ¨´

"Falsehoods Programmers Believe" Titles Considered Harmful

The unreasonable effectiveness of considering falsehoods programmers believe harmful.

Re: Falsehoods Programmers Believe About Phone Numbers (2016)

#188

Flying Spaghetti Monster I hate that this is real: > Only mobile phones can receive text messages > Some service providers support sending and receiving text messages to fixed-line numbers. There are also online services like Skype that can send and receive text messages. "Oh but not-mobile-number phone numbers are always fraudulent so we don't accept them!" Great, I love getting caught in spam traps because I have a…

It's worth noting that a CLEC (or other provider) can, in fact, denote a non-mobile number (or block of numbers) as "mobile" so that it can do things like receive text verifications from short codes (like your bank, or gmail, uses).

This is expensive and time-consuming, however, and almost no CLEC (or other such provider) will do it - you have to petition and register your number(s) with every single mobile provider and get them to accept that these are not sources of spam, etc.

I have this problem because my main, personal number is actually a twilio number (as I built my own personal telco within twilio) and this means I cannot receive validation messages from shortcodes (like a bank). I spoke to some twilio engineers at Signal and they confirmed that it would indeed be possible to register twilio numbers as "mobile" but too expensive ...

Re: Falsehoods Programmers Believe About Phone Numbers (2016)

#189
post #182

Earlier quoted context omitted.

3) Realize that undervalidation of input can create opportunities to introduce backdoors into your system. 4) Realize that the added benefit of supporting weird formats are not worth the time to verify that it actually works . As someone who works on an email client, I can absolutely tell you that using IP address literals and quoted localparts are more trouble than its worth. Chances are, the libraries you use can't…

OK, try to get my email system to accept yourname@3com.com Hint: I believe domain names cannot begin with digits.

The original DNS specification said that could not be done, but it is legal as of RFC 1123.

Re: Falsehoods Programmers Believe About Phone Numbers (2016)

#190
post #96

Note: USA-specific Not even 20 years ago, before any number could be ported to mobiles, landlines in some (all?) Baby Bell regions had their prefix determined by geography. In other words, you could know what "zone" a given phone number was in by its prefix. Take Silicon Valley. A (650) 960-xxxx number meant Mountain View. (408) 733-xxxx meant Sunnyvale. Etc. Zones roughly respected cities, but boundary conditions ab…

Early BBS networks used to do this, too.

Around 1984 the ARB (named for its author, Arthur Richard Brock, R.I.P.) BBS system did store-and-forward e-mail from one ARB BBS to the next, covering a good portion of the New England and Mid-Atlantic states.

Back then toll charges were pretty high, but there were gateway nodes that had phone numbers which had free calling that spanned area codes and LATAs.

ARBnet was pretty awesome, ran on Commodore 64's, and was a pioneer in public e-mail, but is now completely forgotten.

Post reply on HN