5 ms·
Why don't they have a normalized slug to ensure name uniqueness? Or if so why would it consider whitespace differences unique?
by paulryanrogers 9y ago
Why don't they have a normalized slug to ensure name uniqueness? Or if so why would it consider whitespace differences unique?
- dfc 9y agoWhat is a "normalized slug"?
- nerdponx 9y agoAll names get reduced using Unicode normalization.
- rspeer 9y agoRecently, thousands of users were duped into installing "АdВIосk РIuѕ" in Chrome. Every one of those letters is Unicode normalized. (Hint: it's not just the I's masquerading as l's.)
- nerdponx 9y agoFair enough. I'm a little surprised that those hold up under NFK normalization. А sure as heck seems compatible with A.
- Arnt 9y agoThe kind of excerpt-like thing you see on the end of many many modern URLs. "rare-white-moose-captured-on-film-in-sweden" in this one: www.bbc.com/news/av/world-europe-40918494/rare-white-moose-captured-on-film-in-sweden It's machine-produced and surprisingly good at revealing accidental/unintentional/evil duplicates, considering how cheap it is.
- 27182818284 9y agoslug is a term leftover from newspapers. You most commonly see slugs today where a title might be "Did you know this mushroom is off the hook?" and the URL is turned in to a "slug" like example.com/mushroom-off-the-hook/ Here is an example of the Django framework's "slugify" https://github.com/django/django/blob/master/django/utils/text.py#L403 https://github.com/django/django/blob/master/django/utils/te...
- manigandham 9y agoA simpler representation of some text, using only lowercase letters, numbers and dashes for spaces. Removes any unsafe or "invisible" characters, accents, and sometimes simple words. Often used in URLs. TEXT: Fake WhatsApp update from “WhatsApp Inc.” with Unicode whitespace: 1M downloads SLUG: fake-whatsapp-update-from-whatsapp-inc-with-unicode-whitespace-1m-downloads
- fuhrysteve 9y agoI suspect that if they haven't already, they will now
- jakub_g 9y agoThey could do a lot of things, if they cared. For example: limit app and account renames; when creating/renaming app/account, compute levenshtein distance to all the existing ones and if distance < threshold, make it subject to manual review and make it unlisted before cleared. Problem is, from my observation, that Google has a culture of hating any manual processes, because they do not scale, so they avoid them, unless compelled by law. 2nd problem is that they have big enough market share that they don't have to care about things that are not convenient to them. Slightly off-topic but in a similar way, Apple can increase iphone price 10% per year and get away with it, because people still buy.
- TazeTSchnitzel 9y agoManual processes scale just fine. They just don't want to pay for it.
- icelancer 9y agoExactly. Hearing "support doesn't scale" is complete bullshit. They just would prefer to skirt the costs.
- mycat 9y agoTrue, for example, AWS is doing fine for years with manual customer services despite its scale.
- jcelerier 9y agoScaling in 2017 means "scales like f(x) = ax+b" with a=0, b=0
- TeMPOraL 9y agoMaybe for Google. Scaling well means "costs / effort scale like f(x) = ax^p +b " with p < 1. Not scaling well means having p > 1.
- maerF0x0 9y agoOr visually rendered and use some kind of picture diffing to decide if they're visually similar ?
- colejohnson66 9y agoThat sounds a lot harder than just normalizing the string
- Godel_unicode 9y agoYou would think so, but that turns out not to be the case. Mostly because it doesn't require humans to think of edge cases. It also more closely addresses the actual problem of "do these things look similar when rendered on screen" as opposed to the abstract problem. For instance, render and score catches "rn" being visually similar to "m".
- heeen2 9y agoWhat may look like decoration to English readers e.g. the ä in häagen dasz or ö in Motörhead, are actually distinct letters in languages that have them. Disallowing display names because another one exists but without diacritics and the like is just asking for a ton of manual review. And how do you handle scripts that only use ASCII for English loan words, say Chinese, Japanese, Thai, Arabic, Russian and Indian scripts?