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

Programmer Humor

32483 readers
343 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
[–] Wirlocke@lemmy.blahaj.zone 141 points 5 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.

[–] RustyNova@lemmy.world 78 points 5 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.

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.

load more comments (4 replies)
[–] PlexSheep@infosec.pub 23 points 5 months ago (1 children)
load more comments (1 replies)
load more comments (1 replies)
[–] lugal@sopuli.xyz 110 points 5 months ago

It's called "ethnic group condition"

[–] SpaceNoodle@lemmy.world 78 points 5 months ago (3 children)

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

[–] SzethFriendOfNimi@lemmy.world 34 points 5 months ago (1 children)

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

[–] sping@lemmy.sdf.org 107 points 5 months ago* (last edited 5 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.

[–] SpaceNoodle@lemmy.world 57 points 5 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.

[–] lowleveldata@programming.dev 53 points 5 months ago (2 children)

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

[–] SpaceNoodle@lemmy.world 43 points 5 months ago (3 children)

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

[–] steventhedev@lemmy.world 18 points 5 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.

[–] xilona@lemmy.ml 10 points 5 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!

[–] Miaou@jlai.lu 7 points 5 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)

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

[–] sping@lemmy.sdf.org 30 points 5 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.

[–] SpaceNoodle@lemmy.world 24 points 5 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.

[–] unionagainstdhmo@aussie.zone 17 points 5 months ago

what the main branch is called

you mean master?

load more comments (6 replies)
load more comments (1 replies)
[–] FederatedSaint@lemmy.world 15 points 5 months ago* (last edited 5 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.

[–] SpaceNoodle@lemmy.world 9 points 5 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)
[–] NigelFrobisher@aussie.zone 7 points 5 months ago

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

[–] AdamEatsAss@lemmy.world 16 points 5 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.

[–] bob_lemon@feddit.de 14 points 5 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)
[–] Sylvartas@lemmy.world 9 points 5 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)
[–] unionagainstdhmo@aussie.zone 14 points 5 months ago (1 children)

Sorry, main race condition

load more comments (1 replies)
[–] ignotum@lemmy.world 62 points 5 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

[–] Swedneck@discuss.tchncs.de 23 points 5 months ago

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

[–] DudeDudenson@lemmings.world 55 points 5 months ago (2 children)

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

[–] AnUnusualRelic@lemmy.world 19 points 5 months ago (2 children)

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

[–] Epzillon@lemmy.ml 23 points 5 months ago (2 children)
load more comments (2 replies)
[–] Valmond@lemmy.world 10 points 5 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'.

[–] Miaou@jlai.lu 9 points 5 months ago (1 children)

Ugh this kind of BS virtue signaling is so pointless

load more comments (1 replies)
load more comments (1 replies)
[–] MystikIncarnate@lemmy.ca 9 points 5 months ago

"kill parent or sacrifice children"

[–] x0x7@lemmy.world 47 points 5 months ago (1 children)
[–] mo_lave@reddthat.com 10 points 5 months ago

The future is regarded in a low light.

[–] kasuaaliucceli@sopuli.xyz 43 points 5 months ago (1 children)

Maybe they should use AI to filter the AI.

[–] SilverCode@lemm.ee 39 points 5 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.

[–] aquinteros@lemmy.world 8 points 5 months ago

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

load more comments (4 replies)
[–] NegativeLookBehind@lemmy.world 40 points 5 months ago

Ask it for the final solution

[–] istanbullu@lemmy.ml 22 points 5 months ago

Moderating AI is dumb. This is the result.

[–] jherazob@beehaw.org 18 points 5 months ago (1 children)

Good old Scunthorpe problem

[–] palordrolap@kbin.run 7 points 5 months ago* (last edited 5 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.

[–] winterayars@sh.itjust.works 8 points 5 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)
[–] bamfic@lemmy.world 8 points 5 months ago

conditon. wrong is this? what with race

[–] NigelFrobisher@aussie.zone 7 points 5 months ago

What’s wrong with being racy?

load more comments
view more: next ›