#Tip ChatGPT GPT 4 Programming
7 messages · Page 1 of 1 (latest)
Here are some tips for requesting application development from GPT-4
- First, think about all of the things your application should do in as much detail as possible. Just list it all out, including how it should look, labels for inputs, etc. then start a new chat and ask GPT-4:
"Please take the following text and convert it into an outline I can provide to a software engineer for development into a complete application. Stage the development and provide milestones. Code must be modular for ease of modification"
add a line break, then paste your block of text. GPT-4 should provide a clean outline for you. Edit this outline to refine it to your needs and also try to group the most code-intensive portions to the early stages."
The goal here is to have the core of the application developed while the conversation history is still young, because code tends to run-out the token limit often. After the core is developed, you can start requesting features by stage from the outline.
Example:
Stage one - core application and UI
Stage two - add features a and b
Stage three - add features c, d and e
Stage four - add features f and g.
Once ChatGPT has completed stage 1, ask it to begin stage 2. Once stage 2 is completed, edit your message asking for stage 2 to ask for stage 3 instead. Then edit it to four when stage 3 is completed. You will have to manually merge the code, but that is not too difficult.
Troubleshooting:
Say you edit your stage 3 request to make stage 4, but then ChatGPT tries to make placeholder functions for stage 2 (because it doesn't see it in the history anymore).
Stop it's generation if it's still outputting, then re-request stage four to also provide the path/filename of the function stage 4 needs from stage 2 and then paste the contents afterwards.
Example:
"Begin stage 4. Here are the current contents of modules/database.py for reference.
#modules/database.py
<paste source code>
"
Coupled with a good initial prompt, this will reliably help you develop entire applications in ChatGPT.
erm...... so whats the prompt?