News for hackers. Stuff that matters.
Re:Type-safe, K-sortable, globally unique identifier inspire... by stronglikedan on Wednesday June 28, 2023 @01:46PM (#36509947)
You can prevent any obscenity, O and 0 confusion, and I and L confusion, just by excluding vowels. If someone interprets "f4g" in an offensive way, then they have bigger issues than can be dealt with in software.
Re:Type-safe, K-sortable, globally unique identifier inspire... by arcticbull on Wednesday June 28, 2023 @02:06PM (#36510260)
There was that time Delta generated an "H8GAYS" PNR. [1] Pretty sure that's valid Crockford encoding too :) however, to your point, it does rely on 'A'. "H8G4YS" would likely still offend someone out there, though, given the kerfuffle in [1].

[1] https://newsfeed.time.com/2013/12/17/delta-airlines-is-very-...

Re:Type-safe, K-sortable, globally unique identifier inspire... by kortex on Wednesday June 28, 2023 @03:27PM (#36511367)
> But as White points out, it’s a bit surprising that Delta didn’t block this particular combination as a possibility. “I’m sure they removed many four-letter words that would be seen as offensive,” he tells the Post. “I’m surprised that ‘gays’ and ‘H8’ weren’t blocked as well.”

Oh sweet summer child (meaning Jeff White, not OP/GP). As someone who has implemented a censorship/filtering list, this is a UX problem on the same level of decideability as the halting problem. You can spend boundless time curating a list to flag/grawlix every possible string that would offend even the most prudish of prudes, and some would still get through. Such as the superficially benign "EATTHE"

https://www.dailymail.co.uk/news/article-2039662/Virginia-dr...

Re:Type-safe, K-sortable, globally unique identifier inspire... by taosx on Wednesday June 28, 2023 @02:00PM (#36510168)
Why we care about obscenity in pseudo-random ids and url?
Re:Type-safe, K-sortable, globally unique identifier inspire... by whimsicalism on Wednesday June 28, 2023 @02:42PM (#36510698)
anglo morals
Re:Type-safe, K-sortable, globally unique identifier inspire... by Racing0461 on Wednesday June 28, 2023 @11:59PM (#36516160)
i don't, the people that can start a **storm on twitter/tumblr causing your stock to drop 10% does.
Re:Type-safe, K-sortable, globally unique identifier inspire... by MR4D on Wednesday June 28, 2023 @03:22PM (#36511295)
Obscenities change with language. That’s why every language has them.

Even programming language have them. For instance, Basic has GOTO.

/j

Re:Type-safe, K-sortable, globally unique identifier inspire... by ZeroClickOk on Wednesday June 28, 2023 @06:55PM (#36513816)
and javascript has type coercion
Re:Type-safe, K-sortable, globally unique identifier inspire... by oleganza on Wednesday June 28, 2023 @03:41PM (#36511555)
The problem is not being offended per se, but having your user id accidentally become "user_123fuck567" — that's akin to having a vulgar license plate on your car's forehead. People don't appreciate how lucky they sometimes are.
Re:Type-safe, K-sortable, globally unique identifier inspire... by nephanth on Wednesday June 28, 2023 @07:04PM (#36513909)
Are those supposed to be user- facing though?
Re:Type-safe, K-sortable, globally unique identifier inspire... by lolinder on Wednesday June 28, 2023 @08:45PM (#36514877)
Using Stripe-style prefixing is most useful if they are—it makes interacting with customer support easier because everyone is on the same page about what this ID identifies.