this post was submitted on 27 Jun 2024
991 points (98.1% liked)

Programmer Humor

24670 readers
247 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

Cross posted from: https://lemm.ee/post/35627632

you are viewing a single comment's thread
view the rest of the comments
[–] Korne127@lemmy.world 62 points 1 year ago (3 children)

In my experience, you can't expect it to deliver great working code, but it can always point you in the right direction.
There were some situations in which I just had no idea on how to do something, and it pointed me to the right library. The code itself was flawed, but with this information, I could use the library documentation and get it to work.

[–] uhN0id@programming.dev 13 points 1 year ago

ChatGPT has been spot on for my DDLs. I was working on a personal project and was feeling really lazy about setting up a postgres schema. I said I wanted a postgres DDL and just described the application in detail and it responded with pretty much what I would have done (maybe better) with perfect relationships between tables and solid naming conventions with very little work for me to do on it. I love it for more boilerplate stuff or sorta like you said just getting me going. Super complicated code usually doesn't work perfectly but I always use it for my DDLs now and similar now.

The real problem is when people don't realize something is wrong and then get frustrated by the bugs. Though I guess that's a great learning opportunity on its own.

[–] xia@lemmy.sdf.org 11 points 1 year ago (1 children)

It can point you in a direction, for sure, but sometimes you find out much later that it's a dead-end.

[–] EatATaco@lemm.ee 3 points 1 year ago

Which is, of course, true for every source of information that can point you in a direction.

[–] danc4498@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

It’s the same with using LLM’s for writing. It won’t deliver a finished product, but it will give you ideas that can be used in the final product.