this post was submitted on 04 Jun 2024
819 points (99.0% liked)

Programmer Humor

32041 readers
959 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 141 points 3 months ago (4 children)

Don't know if this has been fixed but Gemini was telling people it's unethical to teach people C++ or memory management.

Because it's considered "memory unsafe" but Gemini took it literally and considered it to unsafe to teach.

[–] [email protected] 79 points 3 months ago (5 children)

proud Rust developer

Joke aside, everytime people gush over AI, I always have to remind them that AI is just a puppy that learnt how to maximise treats, and not actually understand shit. And this is a perfectly good example.

[–] [email protected] 13 points 3 months ago

Right??? I’m continually floored by how many genuinely smart people I come across who ignore this concept, which is one of the biggest reasons I just don’t trust LLMs in a general sense. Like sure, I can use them fairly effectively, but the vast majority of the people who interact with LLMs don’t use a level of caution with them that’s appropriate.

And that doesn't even touch on the huge ethical (and legal) issues around how LLM devs acquire and use training data.

[–] [email protected] 7 points 3 months ago

Dogs are way more intelligent than that. LLM tech is basically a way to quickly breed fruit flies to fly right or left when they see a particular pattern.

load more comments (3 replies)
[–] [email protected] 23 points 3 months ago (1 children)
load more comments (1 replies)
load more comments (1 replies)
[–] [email protected] 111 points 3 months ago

It's called "ethnic group condition"

[–] [email protected] 78 points 3 months ago (3 children)

No, you can't say "master," either.

[–] [email protected] 34 points 3 months ago (1 children)

That one i get at least. But race condition is using race in the sense of a competition.

[–] [email protected] 107 points 3 months ago* (last edited 3 months ago) (15 children)

You do? Because I don't. There is nothing racist about the concept of master. Is a masterpiece racist? Are master tapes, Are post-graduate degrees racist? We may as well declare "work" insensitive because slaves had to work.

Don't get me wrong, there are many terms we should adjust. I just can't see how "master" is one of them.

[–] [email protected] 56 points 3 months ago (4 children)

I'd argue that abolishing the term "slave" isn't the worst idea, implying that the word "master," only in context where it's paired with "slave," should go as well - but that, of course, requires nuance, which a simple word filter lacks.

[–] [email protected] 53 points 3 months ago (2 children)

This. To avoid the "master" branch on our git to be associated with "slave" I now name new branches "bitch"

[–] [email protected] 43 points 3 months ago (3 children)

There aren't "slaves" in git, though. The term "master" in that context is that of a master copy.

[–] [email protected] 19 points 3 months ago (2 children)

Nope. Bitkeeper used it in the master-slave pairing and the term was carried forward. Gitlab did a whole writeup about it.

[–] [email protected] 10 points 3 months ago

"Historically, the default name for this initial branch was master. This term came from Bitkeeper, a predecessor to Git. Bitkeeper referred to the source of truth as the "master repository" and other copies as "slave repositories". This shows how common master/slave references have been in technology, and the difficulty in knowing how the term master should be interpreted."

Excerpt from the link the other member posted above! You're welcome!

[–] [email protected] 7 points 3 months ago

It's funny, because a quick online search shows gitlab runs operations in Saudi Arabia. But at least a bunch of idiot westerners get to feel good about themselves 🤷‍♂️

load more comments (2 replies)
[–] [email protected] 10 points 3 months ago

Just skip the intermediate naming conventions and go straight to dom/sub

[–] [email protected] 30 points 3 months ago (2 children)

And yet there's a big push to rename git "master" branches, which have no slave connotations and are more analogous to master recordings.

Its not like I'll fight it, but it's stupid.

[–] [email protected] 24 points 3 months ago (7 children)

It is stupid, and it's because of a failure to understand the nuance.

I will not inconvenience myself or anyone else by making any changes to existing configurations, which will surely break workflows, but I don't give a shit what the main branch is called as long as it's obvious.

[–] [email protected] 17 points 3 months ago

what the main branch is called

you mean master?

load more comments (6 replies)
load more comments (1 replies)
[–] [email protected] 15 points 3 months ago* (last edited 3 months ago) (1 children)

Why abolish the word slave? I've heard of people advocating for abolishing the word "black" also. It's crazy to me. I don't understand how using the word at all somehow advocates for human slavery.

[–] [email protected] 8 points 3 months ago (1 children)

It draws unfortunate parallels.

I do agree that the proposals to abolish "black" feel a bit misguided though surely well-intentioned; the etymology of "blacklist," for example, has no relation to race whatsoever. However, there are unfortunate parallels with how "black" and "white" people were and indeed are still treated differently.

load more comments (1 replies)
[–] [email protected] 7 points 3 months ago

Humans, conversely, are incredibly talented at deciphering nuance, except when they don’t want to.

[–] [email protected] 16 points 3 months ago (1 children)

It upsets some people. It doesn't affect the end user. The terms "Bull Branch" and "Cuck Branch" will make stand up meeting more fun.

[–] [email protected] 14 points 3 months ago (1 children)

Isn't the master branch the submissive one? Always behind, getting force fed content from the other branches.

load more comments (1 replies)
[–] [email protected] 9 points 3 months ago (2 children)

I guess it could be construed as racist when it's literally "master/slave". But I have never seen it as a normalization of slavery because there usually is no value attached to the terms, it's just describing the relation between them. And I don't think acknowledging that a slave generally doesn't have much say in doing what their master tells them is racist in itself or endorsing/normalizing slavery.

But also, I am white, and there are other terms we can use that can describe this kind of relation just fine, so, whatever. I just get mildly annoyed when some stuff that was working perfectly fine gets deprecated just to change these terms and I have to adapt to it.

load more comments (2 replies)
load more comments (12 replies)
[–] [email protected] 14 points 3 months ago

Sorry, main race condition

[–] [email protected] 62 points 3 months ago (1 children)

Race conditions can make you a racist,
If you

  1. Are behind the wheel of a racecar
  2. You are on a racetrack

Then there's no nice way to say it, you might be a racist, drive safe

[–] [email protected] 23 points 3 months ago

go speed racist, go speed racist, go speed racist, go!

[–] [email protected] 56 points 3 months ago (2 children)

Wait until you try to do something that involves managing child processes

[–] [email protected] 20 points 3 months ago (2 children)

Can't the master kill all slaves and childs (processes)? It's in the manual!

[–] [email protected] 24 points 3 months ago (2 children)
load more comments (2 replies)
[–] [email protected] 11 points 3 months ago (2 children)

At work we don't have the right to use master/slave (maître /esclave) anymore because of history (this is mostly linked to deploying systems). On the upside our git master is now the shorter 'main'.

[–] [email protected] 8 points 3 months ago (1 children)

Ugh this kind of BS virtue signaling is so pointless

load more comments (1 replies)
load more comments (1 replies)
[–] [email protected] 10 points 3 months ago

"kill parent or sacrifice children"

[–] [email protected] 47 points 3 months ago (1 children)
[–] [email protected] 10 points 3 months ago

The future is regarded in a low light.

[–] [email protected] 43 points 3 months ago (1 children)

Maybe they should use AI to filter the AI.

[–] [email protected] 39 points 3 months ago (5 children)

The other day I used the JetBrains AI to write some boilerplate code for me. The JetBrains AI code analyser then kicked in to tell me how poorly written the code was.

[–] [email protected] 8 points 3 months ago

that's how you know they use stack overflow to train the models

load more comments (4 replies)
[–] [email protected] 40 points 3 months ago

Ask it for the final solution

[–] [email protected] 22 points 3 months ago

Moderating AI is dumb. This is the result.

[–] [email protected] 18 points 3 months ago (1 children)

Good old Scunthorpe problem

[–] [email protected] 7 points 3 months ago* (last edited 3 months ago)

[I have told this story elsewhere before]

I thought I was so clever once. I taught a word filter about "th" thinking that would solve the problem, but it still got stuck on Scunthorpe. mfw.

Had to step through what it was doing. It had hit a rule that treated 'oo' the same as 'u' which, at least sound-wise, is valid for some words in some dialects. e.g. Consider "book", which is identical to "buck" for many people. You can imagine why that might want to be caught.

To save you the head scratching, it had spotted the 'c' then a double-'o' then the 'n' and threw it out as containing a known racial slur.

The filter was for a random string generator so that it wouldn't generate strings with bad words in them. Seemed like a good idea at the time.

Since it was unlikely that it was going to generate "Scunthorpe" anyway, the problem remained unfixed.

[–] [email protected] 8 points 3 months ago (1 children)

It's incredible that this is such a big point of debate. This kind of thing is really ignoring the material reality of racism in favor of the minutiae. Let's have some 40 acres and a mule, then we can start talking about race conditions.

load more comments (1 replies)
[–] [email protected] 8 points 3 months ago

conditon. wrong is this? what with race

load more comments
view more: next ›