103
submitted 1 year ago* (last edited 1 year ago) by twelvewings@lemmy.world to c/chatgpt@lemmy.world

I asked GPT4 to refactor a simple, working python script for my smart lights... and it completely butchered the code and apologized mid-generation.

No amount of pleading or correction would get it to function as it did just a week or two ago.

It is so over.

you are viewing a single comment's thread
view the rest of the comments
[-] GutterPunch@lemmy.world 2 points 1 year ago

It's moderately good at in-line commenting functions and creating full function doc comments for the specific language / documentation format you need, but its code generation abilities are still not game-changing. Getting it to generate anything longer than a few helper functions is a test of patience.

[-] twelvewings@lemmy.world 7 points 1 year ago* (last edited 1 year ago)

This wasn't always this case. I had zero Python experience a month ago, and managed to make a 300 line Python script that checks credit card validation, and has a beautiful UI. This would be impossible today.

[-] BoomBoomLemon@lemmy.world 28 points 1 year ago* (last edited 1 year ago)

You said “beautiful” but I’m not sure you are using that word right.

[-] twelvewings@lemmy.world 3 points 1 year ago

Considering how long I've been using Python, and how it looked when I started, it is to me. And here is the ancient one I was previously using:

[-] LoafyLemon@kbin.social 2 points 1 year ago

Somehow this looks better to me, possibly because of less redundancy (copy buttons aren't needed when you have ctrl+c).

[-] mycroft@lemmy.world 1 points 1 year ago

They had to make it too dumb to draw Disney Characters... you think I'm joking, try getting it to render a disney character in SVG or javascript...

load more comments (2 replies)
this post was submitted on 06 Jul 2023
103 points (96.4% liked)

ChatGPT

8828 readers
15 users here now

Unofficial ChatGPT community to discuss anything ChatGPT

founded 1 year ago
MODERATORS