by zegl on 8/24/22, 10:52 AM with 35 comments
I've been experimenting with merging prompts together, with a goal to write the full backend in a single prompt.
On the form:
> 1. Setup a flask web server
> 2. Add a /add endpoint
It works reasonably well, but it seems like it's loosing some precision in the prompts... The person that coined the term "prompt engineering" was right, it's really important to learn what words to use to get the AI to do exactly what you want it to do.
by akkartik on 8/24/22, 9:46 PM
by daenz on 8/24/22, 8:31 PM
So while it could help blast out large swaths of code quickly, it still needs an expert at the wheel to be accountable for the changes to reviewers.
by cbm-vic-20 on 8/25/22, 1:46 AM
> beware: sometimes Codex writes code vulnerable to SQL injection. When that happens tough, I was able to prevent it by adding "safely" to the prompt.
Oops.
Anyway, is "the program" actually the prompts? Should that be committed into source control, so future you and others can figure out how the code was built? How long will it be until we can trust Codex enough that the Python code doesn't need to be committed? "Codex, create an Android CRUD UI for this OpenAPI document."
by kevincox on 8/24/22, 7:35 PM
I really want to see some examples of failed prompts and attempts to ask it to cache sqlite connections.
by sdwr on 8/24/22, 8:51 PM
Got scared for a second (most of what I code is CRUD backends!), until I tried to see it from the perspective of a novice, where all of this is impenetrable anyway.
by xrd on 8/24/22, 8:24 PM
by nl on 8/24/22, 11:13 PM
by verdverm on 8/24/22, 11:45 PM
Did you have to correct output for the post?
https://github.com/sturdy-dev/codeball-todo-mvc/blob/main/ap...
https://github.com/sturdy-dev/codeball-todo-mvc/commit/17992...
by keyle on 8/25/22, 12:04 AM
Is this closed? Beta? or .. ?
As a kid I used to dream to talk to the computer and it would make code happen as a repl. This appears to be close to it.
by citizenpaul on 8/25/22, 6:59 PM
Now instead of spending years learning to do all that nasty troublesome coding you can just spend years learning to exactly phrase what you want the code generator to do. Wait.... is this an infinite loop joke?
by w1zzy on 8/24/22, 7:45 PM
by hirebackenddev on 8/25/22, 5:25 AM