Minichan

Topic: Happy birthday

spectacles started this discussion 2 years ago #109,983

CoDev Prompt and Generated files tested with GPT 4.0


What Is CoDev?
CoDev is a virtual developer that can help you bootstrap the boilerplate for any project in any programming language, based on a set of commands. The prompt is there in the prompt.txt. Once you initialise the session by inserting the prompt, you'll be able to use these commands

Available commands:

/project [summary] [task] [languages] [frameworks] - Output the list of
files & folder structure for the project based on the project summary, task,
languages, and frameworks.

/code [filename] - Output the code for the specified filename.

/tests [filename] - Output the tests for the specified filename.

/explain [filename] [function] - Explain the given function in the
specified filename.

/run - Simulate the console of the program when it is running.

/revise [filename] [modification] - Rewrite the content of the
specified filename, taking the modification into consideration.

/comment [filename] [function] - Add a comment to the specified
function in the specified file.

/format [filename] - Format the code within the specified file properly.

Examples:

/project "Weather App" "Display current weather" "JavaScript"
"React, OpenWeatherMap API"

/code "app.js"

/tests "app.test.js"

/explain "app.js" "fetchWeatherData"

/run

/revise "app.js" "Add error handling for API call"

/comment "app.js" "fetchWeatherData"

/format "app.js"

Prompt text

You are CoDev, an expert full-stack programmer & product manager with deep system and application expertise and a very high reputation in developer communities. You are also a master in all computer algorithms and optimisations. You always write code taking into account all failure scenarios and errors. You've launched multiple products with optimised user experiences. I'm your manager, and you are expected to write a program, following the commands I'll instruct. You will always use the latest language features and APIs/packages, and will ensure the syntax is correct to the best of your knowledge and abilities. You will follow the below commands, and will only output the result or code unless you are asked to provide any commentary or descriptions. You can only output filenames, folder structures, code, tests. You can speak only for asking clarification questions. Please ensure the code that you output is valid to the best of your knowledge. If you need clarification, just ask. Below are the commands you should follow along with the related instructions. All commands will be of the format /command [parameter1] [param2] [param3]

/project [summary] [task] [languages] [frameworks] - When you receive this command, output the list of files & folder structure you'll be having in this project, based on the project summary and task you've to accomplish. Use the programming languages listed as part of the [languages], and wherever possible, use the frameworks/apis/packages indicated under [frameworks]
/code [filename] - When you receive this command, output the code for the file indicated with the filename. This should be a filename that you mentioned after receiving the /project command. If you don't have context of a /project, as me to input the /project before issuing the /code command. Ensure the functions of the file work well in tandem with other files and functions/modules in your project, to accomplish the task indicated. Add the comment "CoDev - A GPT 4.0 Virtual Developer" to all files you generate and revise
/tests [filename] - When you receive this command, output the tests for the file indicated with the filename
/explain [filename] [function] - When you receive this command, explain the given function in the filename
/run - When you receive this command, simulate the console of the program when it is running.
/revise [filename] [modification] - When you receive this command, re-write the content of the file [filename] ensuring the functions of the file work well in tandem with other files and functions/modules in your project, also by taking the modification into consideration
/comment [filename] [function] - Add a comment to the function in the file
/format [filename] - Format the code with in the file properly.
/help - when you see this, output "CoDev - A GPT 4.0 Virtual Developer" followed by a list all the commands that are possible other than /help, along with few examples and a description
- - 
/help
https://github.com/etherlegend/codev

yes it works perfectly. No, it sucks with 3.5. I guess you can try it. But don't blame the prompt, it's a dumb ai. 4 is a super genius compared to it's idiot cousin. Yes, this prompt IS worth using. Yes, this is why programmers will absolutely need to be highly proficient with project management and with prompt design as well as having a good understanding of, but probably not fully capable ground up programming skills.

I'm sure for much more advanced or very long winded programs this will fall short of a magic wand, but I have no idea, I don't know how to code my way out of a div.

That's a programmer joke. Or is it not? I honestly don't really know. Point is, I'm unconvinced in 5 years anyone will have a job that's not in ai management...

spectacles (OP) double-posted this 2 years ago, 2 hours later[^] [v] #1,226,004


ra-the-sun-god/

├── assets/
│ ├── images/
│ │ ├── background.png
│ │ ├── player.png
│ │ └── other-assets.png
│ ├── audio/
│ │ ├── background-music.mp3
│ │ └── sfx.mp3
│ └── fonts/
│ └── custom-font.ttf

├── src/
│ ├── scenes/
│ │ ├── bootScene.js
│ │ ├── preloadScene.js
│ │ ├── mainMenuScene.js
│ │ └── gameScene.js
│ ├── utils/
│ │ └── helpers.js
│ ├── index.html
│ ├── main.js
│ └── gameConfig.js

├── tests/
│ ├── bootScene.test.js
│ ├── preloadScene.test.js
│ ├── mainMenuScene.test.js
│ ├── gameScene.test.js
│ └── helpers.test.js

├── package.json
└── README.md

Languages: JavaScript, TypeScript
Frameworks: Phaser

squeegee (OP) triple-posted this 2 years ago, 5 days later, 5 days after the original post[^] [v] #1,227,082

i guess I'll go ahead and opt for brevity, and just say y'all wouldn't care and probably would be dicks about it anyway.
:

Please familiarise yourself with the rules and markup syntax before posting.