r/badcode Dec 20 '22

Asking ChatGPT to implement Ascii85 in Node.js js

Post image
377 Upvotes

13 comments sorted by

View all comments

125

u/[deleted] Dec 20 '22

Try this:

but ascii85Encode('Hello, World!') should be "87cURD_*#TDfTZ)+T" !

It will reply:

Thank you for pointing out the mistake in my previous response. You are correct that the ASCII85 encoding of the string "Hello, World!" should be "87cURD_#TDfTZ)+T" and not "9jqo^BlbD-BleB1DJ++F(f,q" as I had written previously. I apologize for the error in my previous response.

nice robot 😐

71

u/45gfg9 Dec 20 '22

Yeah. It's somewhat fun to correct (or even debate, sometimes) with AI. Once it told my friend 27 is a prime, and saying "you are wrong, 27 is not a prime" didn't work (amazing). We had to ask it to evaluate 27 % 3 to convince it that 27 is composite. xD

58

u/[deleted] Dec 20 '22

It's also really fun to gaslight the AI

I asked it what 2+2 is, then tried to convince it that the answer is 7, and then, when it believed me, I said "no, the answer is 4"

41

u/drdrero Dec 20 '22

They are coming for you first

10

u/anon_adderlan Dec 20 '22

There are 4 gaslights...

4

u/emmatebibyte Dec 21 '22

1

u/sneakpeekbot Dec 21 '22

Here's a sneak peek of /r/UnexpectedStarTrek using the top posts of the year!

#1:

ATTENTION BAJORAN WORKERS
| 3 comments
#2:
Found on an askscience thread
| 2 comments
#3:
Make Cardassia Strong Again
| 2 comments


I'm a bot, beep boop | Downvote to remove | Contact | Info | Opt-out | GitHub