Live data from Hacker News

The naughty username checking system used by Twitch

ghostbin.com

321–330 of 348 posts

Re: The naughty username checking system used by Twitch

#321
post #116
post #61

Earlier quoted context omitted.

A bad words list is a regex. ;-) But note: for the most part this isn't using regexs, and to the extent it does, it seems largely intended to make the maintainers' lives easier by avoiding having to represent (and maintain) all the permutations they are trying to match for. What's sad though is that they're doing many, many passes through the pattern matcher, rather than just building a single big DFA from the whole…

Could Postgres convert the function into a DFA using the JIT optimizer (based on LLVM)? That might delve into sufficiently smart compiler territory but recognizing a bunch of OR'ed string matches seems on the easier end of optimization passes.

Yup, that's definitely sufficiently smart compiler territory. If you want to write an optimization pass that handles that, go for it, but you won't find one already there.

Re: The naughty username checking system used by Twitch

#322

Earlier quoted context omitted.

>the guy that streamed a talking banana on Twitch Of all the ways I expected a talking banana to backfire, I didn't expect this one. Thanks for sharing

Wait, now I’m extremely curious what failure modes one would expect from a talking banana.

https://youtu.be/ACmydtFDTGs

Re: The naughty username checking system used by Twitch

#323

Doing this in SQL is absolute insanity. I’ve seen many pieces of code grow in this way and I understand how it happens but still surprises me to see how scrappy things are under the hood at some big-time companies.

Hello, what would be a better way to do it? In code? Regex?

Probably yes, in code with regex. To name a few advantages: 1. Better readability and organization. Rules and word lists can be abstracted to more of a config format. 2. possible to easily store in a database and support dynamic additions/changes to the rules and words 3. Better accountability of performance. Able to use profiling to catch any perf issues in the rules. 4. Testable with unit tests

Re: The naughty username checking system used by Twitch

#324
post #244

Earlier quoted context omitted.

I thought it was something along the lines of "sticks and stones may break my bones but words can break hearts" Basically, the pen is stronger than the sword, kind of morale.

I've never heard that one, but it might be a regional variant. I always heard the other one.

I'm not a native speaker, so almost every time I hear that phrase it ends after "sticks and stones", because on TV and movies, that's usually enough for the intended audience.

After Googling, I think I might have picked up this version from Tim Minchins song "prejudice" [1] although Google also come up with this clip where a senator also use the "break my heart" version, clearly when it was meant for him to say "never harm" [2]

1: https://www.youtube.com/watch?v=KVN_0qvuhhw

2: https://youtu.be/QoMheenRUHM?t=92

Re: The naughty username checking system used by Twitch

#325
post #245

Earlier quoted context omitted.

> But on a collective level we aren't yet (if we'll ever be) as developed a civilization to have empathy on that level. I agree. Which is why we have rules around politeness and manners, which roughly conform to same actions as actual empathy. Which makes sense - people don't always have the same level of empathy, there are lots of neurodivergent people who will never understand empathy but who can learn a set of rul…

> I feel like this respect for being nice to each other so we can all get along is on the wane. I think this is depending on how you see it. The modern landscape with social media makes activists very effective in creating information campaigns that raises awareness of how to be polite in a modern world. Eg. nowadays personal pronouns are complicated business but finding out and respecting individuals chosen pronouns…

> Eg. nowadays personal pronouns are complicated business but finding out and respecting individuals chosen pronouns are considered polite. A successful change of culture that increases empathy and respect of fellow humans in general.

In one way, that is of course true, and people who just blithely ignore that, or even explicitly refuse to use the pronouns they're asked to, are of course arseholes.

But OTOH, it feels like it's getting more and more to keep track of -- at least if you also want to keep up the old norms of "good behaviour" we learned as kids. And perhaps that's precisely why some of us are feeling those old norms are falling by the wayside -- maybe people only have some set amount of attention to spend on this stuff, and if something new is added, something else gets crowded out?

If that's the case, do we know for sure that it's unequivocally a good thing? I'm not quite certain.

Re: The naughty username checking system used by Twitch

#326

Earlier quoted context omitted.

I'm talking about things like 1. A professor fired for using the N-word in a discussion about racial discrimination 2. A professor placed on leave for using a Chinese expression that sounded like the N-word 3. People that express the opinion that someone who has undergone a gender change operation is different from someone that was born that gender. Expressing an opinion that they're different in some ways; not mocki…

3. The words you use for this are trans and cis. No one is going to get upset at someone for using them. If you are trying to use "creative" language to say the same thing you shouldn't be surprised when people take offense, considering that non-offensive terms already exist.

The word the most rabid "PC warriors" use for this are "man" and "woman". If you dare say "Trans women are different from other women in that...", you can bet there's some looney who will jump down your throat along the lines of "How dare you call this woman anything else but just 'a woman', you horrible bigot!"

If you didn't understand that this was what the GP meant you must have led an exceedingly sheltered online life until now. (Which, frankly, feels so unlikely that it feels nearer to hand that your comment was made in bad faith or, at best, unthinkingly.)

Re: The naughty username checking system used by Twitch

#327
post #188

Earlier quoted context omitted.

People should just be taught (I would consider this is an essential skill which should be put in basic school curriculum to psychologically prepare people for the life, many support/sales professionals learn it quickly but the rest of the people don't) words are just words and they don't have to take them seriously. No word is rude until you consider it rude. No word can actually harm you directly. It's you who is in…

I'm quite a feminine guy and I was always called various homophobic slurs at school. Even though I wasn't gay I didn't understand why it would matter if I was so I would just say "ok". Even when the insults could be considered objectively offensive I'm still generally okay with it. I've been called names quite a bit in the workplace over the years and I'm okay with it if makes them happy. Being autistic I don't reall…

> High EQ individuals have told me this is wrong and the appropriate reaction would be to take offence and try to make them feel bad, but I've argued this would just result in an objective reduction in happiness in the world so it wouldn't make sense. Plus, most of the time my colleagues have been nice to my face so it's not like it's ever got in the way of me doing my job.

You may be wrong, and these "High EQ individuals" right, in the sense that your acquiescence to this bullying behaviour might encourage the bullies to keep it up with others too. In that sense, your standing up against them would be not just for yourself but for all their potential future victims too, which would increase the future sum total of happiness in the world.

(I'm not saying it is necessarily so, but it may be.)

Re: The naughty username checking system used by Twitch

#328
post #242

Earlier quoted context omitted.

I adore you but doubt your judgement about those being high EQ individuals. By the way in the middle school we used a derogatory for gay every day without even having any idea of what did it mean, all we knew was that was the worst word we knew. When others bullied me (always (or I just never cared and don't remember the verbal) physically, way harder to endure) I occasionally went mad and called them this word repea…

This is neither here nor there, but I learned from watching Louie that "faggot", the derogatory term for homosexuals, has the same origins as the word "fascism" – a bundle of sticks. The idea is that in the dark days of witch trials, one would, apparently, not only burn supposed witches, but also homosexuals. However, since homosexuals were thought of as less than witches, while a witch got the stake, the homosexuals…

This is probably also the root of the other meaning of the word "fag", which in British English slang (or is it even "slang" any more?) means not only "homosexual" but also "cigarette": A little stick that burns.

Re: The naughty username checking system used by Twitch

#329
post #188

Earlier quoted context omitted.

I'm quite a feminine guy and I was always called various homophobic slurs at school. Even though I wasn't gay I didn't understand why it would matter if I was so I would just say "ok". Even when the insults could be considered objectively offensive I'm still generally okay with it. I've been called names quite a bit in the workplace over the years and I'm okay with it if makes them happy. Being autistic I don't reall…

The thing with basic etiquette and other secondary virtues is that if you have none of them, the climate can become horribly rough and unpleasant but you can also overdo them. It's all about a reasonable equilibrium. As for name calling and slurs at work, I don't see a reason why these should ever be tolerated. Someone who cannot demonstrate a minimum of politeness towards their colleagues shouldn't be part of the te…

> As for name calling and slurs at work, I don't see a reason why these should ever be tolerated.

The problem is when language changes for some but not all, so suddenly words that used to be perfectly normal are considered slurs: Those who learned and use them in the original non-offensive sense are suddenly, and in their own opinion unjustly, seen as bigoted.

Re: The naughty username checking system used by Twitch

#330

Earlier quoted context omitted.

People should just be taught (I would consider this is an essential skill which should be put in basic school curriculum to psychologically prepare people for the life, many support/sales professionals learn it quickly but the rest of the people don't) words are just words and they don't have to take them seriously. No word is rude until you consider it rude. No word can actually harm you directly. It's you who is in…

> Uhura : But why should I object to that term, sir? You see, in our century, we've learned not to fear words.

Yeah, that only shows how stupid the original Star Trek often was. Just because they hadn't yet had a Trump or a Hitler in Uhura's century is no reason for her not to know that "words" are exactly what scum like that rises to the top on.
Post reply on HN