Technology
This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.
Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.
Rules:
1: All Lemmy rules apply
2: Do not post low effort posts
3: NEVER post naziped*gore stuff
4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.
5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)
6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist
7: crypto related posts, unless essential, are disallowed
view the rest of the comments
I've never been able to get a solution that was even remotely correct. Granted, most of the times I ask ChatGPT is when I'm having a hard time solving it myself.
You need to be able to clearly describe the problem, and your expected solution, to get it to give quality answers. Type out instructions for it like you would type for a junior developer. It'll give you senior level code back, but it absolutely needs clear and constrained guidelines.
I mostly agree, I've had good results with similar prompts, but there's usually some mistake in there. It seems particularly bad with python imports, it just uses class A, B, C and imports class A, B and X and calls it a day.
Here are a few prompts that gave pretty good results:
For this one, it ignored the method I asked it to use -- but it was possibly correct in doing so, as it doesn't support arbitrary sizes (but I think that's only for the request?):
It should have told me why it ignored using TransactNamedPipe, but when I told it that it ignored my request it explained why.