Why Nostr? What is Njump?
2023-08-13 21:48:46

THE MARTYR OF BUTLERIAN JIHAD on Nostr: Google's libphonenumber contains almost 50k lines of C++ code and not that much less ...

Google's libphonenumber contains almost 50k lines of C++ code and not that much less of Java and Javascript. All of that is needed to parse and validate phone numbers. Just think about this for a second.

Your input is as simple as "1 323 555 66 69". With or without a plus sign in the beginning. Maybe the country code is missing and passed explicitly. And you need 50k lines of C++ to parse, validate, and format this data.

This is real code, written by real programmers. Someone out there makes over $200k annually (i actually don't know how much people at Google make) for writing this. This is the most elegant solution one of the leading software companies could come up with.

I can almost guarantee than any single lad reading this post can do better. Not that I have high opinions of you, although you're probably fine, but because libphonenumber is an atrocious piece of shit. It must have taken a huge amount of effort to make it this bad.
Author Public Key
npub14zues5n3z7schvkwaausr8q2jsct8pzcncgkp0l5rye4t7ar5rvq397yp7