News for hackers. Stuff that matters.
Re:Hi everyone yes, I left OpenAI yesterday by Keyframe on Wednesday February 14, 2024 @08:10AM (#39369381)
I kind of gave up completely on coding questions. Whether it's GPT4, Anthropic, or Gemini - there's always this big issue of laziness I'm facing. Never do I get a full code, there are always stubs or TODOs (on important stuff) and when asked to correct for that.. I just get more of it (laziness). Has anyone else faced this and is there a solution? It's almost as annoying, if not more, as was incomplete output in the early days.
Re:Hi everyone yes, I left OpenAI yesterday by bugglebeetle on Wednesday February 14, 2024 @08:41AM (#39369621)
The solution, at least for GPT-4, is to ask it to first draft a software spec for whatever you want it to implement and then write the code based on the spec. There are a bunch of examples here:

https://github.com/mckaywrigley/prompts

Re:Hi everyone yes, I left OpenAI yesterday by CuriouslyC on Wednesday February 14, 2024 @09:54AM (#39370440)
If you can't get GPT4 to do coding questions you're prompting it wrong or not loading your context correctly. It struggles a bit with presentational stuff like getting correct HTML/CSS from prompts or trying to generate/update large functions/classes, but it is stellar at producing short functions, creating scaffolding (tests/stories) and boilerplate and it can do some refactors that are outside the capabilities of analytical tools, such as converting from inline styles to tailwind, for example.
Re:Hi everyone yes, I left OpenAI yesterday by Keyframe on Wednesday February 14, 2024 @11:07AM (#39371540)
so, mundane trivial things and/like web programming? I got it eventually to answer what I needed but it always liked to skip part of the code, inserting // TODO: important stuff in the middle, hence 'laziness' attribute. Maybe it is just lazy, who knows. I know I am since I'm prompting it for stuff.
Re:Hi everyone yes, I left OpenAI yesterday by CuriouslyC on Wednesday February 14, 2024 @11:43AM (#39371936)
I wouldn't say mundane/trivial as much as well trodden. I get good code for basic shaders, various compsci algorithms, common straightforward sql queries, etc. If you're asking for it to edit 500 line functions and handle memory management in a language that isn't in the top20 of the TIOBE index you're going to have a bad time.

The todo comments can be prompted against, just tell it to always include complete runnable code as its output will executed in a sandbox without prior verification.

Re:Hi everyone yes, I left OpenAI yesterday by antonvs on Monday February 19, 2024 @06:38AM (#39428689)
Fyi, I've never encountered what you're describing, whether with GPT 3.5 or 4.

It may be that you're expecting it to do too much at once. Try giving smaller requests.