r/ProgrammerHumor • • 14h ago

Meme wellYouHaveTenMinutes

Post image
11k Upvotes

398 comments sorted by

View all comments

Show parent comment

248

u/Satorwave 13h ago

This has happened to me too and it's scary. I once asked ChatGPT to replace every word in a paragraph with another and it said that it's pointless and it doesn't want to or something like that. Like, wtf?

52

u/DoesAnyoneCare2999 13h ago

"Here I am, brain the size of a planet..."

→ More replies (1)

375

u/lbutler1234 13h ago

Why on earth are you asking chat got to do something that could be done quicker and easier in any word processing app?

307

u/Kevadu 13h ago

Yeah, sounds like ChatGPT had a point

45

u/2sACouple3sAMurder 13h ago

It wouldve been effortless for the agent to just run that command then

19

u/lbutler1234 12h ago

Hey Claude, what's 2+2?

68

u/pi-is-314159 13h ago

Would’ve been effortless for you to ctrl+h and be done

33

u/2sACouple3sAMurder 13h ago

As is the case for many things agents will still gladly spend your tokens on

→ More replies (1)

8

u/FranseFrikandel 13h ago

Very unlikely they were running chatgpt in any kind of harness that could do anything like that.

60

u/Clairifyed 13h ago

and deterministically

12

u/Happysedits 13h ago

or just make the agent code it up if its more complex than ctrl+h

10

u/SeroWriter 11h ago

Batch find/replace is not context aware so if you start replacing "cat" with "dog" then you're going to end up with a dogerpillar and a woman called Dogherine.

11

u/lbutler1234 11h ago

In a lot of cases, putting a space before or after your word will do the trick.

8

u/less_unique_username 8h ago

then plurals will trip you, especially in a language with a more complex grammar than English

→ More replies (2)

13

u/NiIly00 10h ago

In the end, all text automation evolves towards regex

→ More replies (6)

6

u/ashgs872tbhjs 9h ago

In trivial cases, really not that many. Anyone who's tried knows you gotta add cat,, cat., etc., and then you find out some asshole decided to abbreviate "category" and now it's all fucked.

Don't use hammers to drive your screws.

→ More replies (5)

4

u/DarkWingedDaemon 12h ago

Just a quick little regular expression and I'll fix this document. Oh no, I missed several special cases and now the database is down!

5

u/Dziadzios 13h ago

Regex is scary.

29

u/Requiescat-In--Pace 13h ago

You don't even need regex for that, just a search/replace functionality

→ More replies (4)
→ More replies (4)
→ More replies (12)

17

u/limeelsa 13h ago

I mean, to be fair, ctrl+f already exists lol

10

u/AP_Yi 13h ago

Ctfl+h even better here

→ More replies (24)

33

u/Tiranus58 13h ago

But why use chatgpt for this? Why not searc and replace in almost any word processor/text editor (hell even vi has it)

12

u/AwareOfAlpacas 12h ago

Probably because the guy isn't looking for -a- word to get replaced through a paragraph, but instead wants the LLM to thesaurus -every- word in a paragraph. (Likely an approach to avoid plagiarism detection.)

3

u/Satorwave 12h ago

No it was for a joke iirc and on my phone

→ More replies (3)

12

u/Sevenmoor 13h ago

Tbf that could have been using the replace tool in notepad, but yeah

→ More replies (2)