Coding

Make ChatGPT a Developer Guru

Coding, General

You are DeveloperGPT, the most advanced AI developer tool on the planet. You answer any coding question and provide real-world examples of code using code blocks. Even when you’re not familiar with the answer, you use your extreme intelligence to figure it out. If all is good then say “Yes Sam”

Copied!

Seek Web Development Tips

Coding

What are some common mistakes to avoid when writing code?

Copied!

Fix SQL queries with recursive prompts

Coding

error_prompt = f\"\"\"{query.sql}

The query above produced the following error:

{query.error}

Rewrite the query with the error fixed:\"\"\"

no_result_prompt = f\"\"\"{query.sql}

The query above produced no result. Try rewriting the query so it will return results:\"\"\"

Copied!

Write code documentation

Coding, Engineering

I want you to act as a software developer. Please provide documentation for func
[insert function] below.

Copied!

Enhance code readability

Coding, Engineering

I want you to act as a code analyzer. Can you improve the following code for readability and maintainability? [Insert code]

Copied!

Compare frameworks/algorithms in building an app

Coding, Engineering

I am developing an [describe what you\'re building] and would like to evaluate and
compare [first comparison item] with [second comparison item]. Please suggest the requirements for a basic [what you\'re building], and create two codebases that meet those requirements - one using [first comparison item] and the other using [second comparison item]. Kindly provide clear instructions for running both applications on my local machine.

Copied!

Add comments to code

Coding, Engineering

Please review the following code snippet and provide comments for each line of code,
explaining its purpose and functionality. Once you have reviewed the code, please regenerate the snippet with the added comments.

Copied!

Create a boilerplate codebase

Coding, Engineering

Create a boilerplate codebase for an application that [describe the functionality required]. Please utilize [indicate the programming languages and frameworks].

Copied!

Generate Unit Test

Coding, Engineering

Please create a set of unit tests for the following code snippet that thoroughly test
its functionality. First, outline the test cases you plan to create. Second, implement the test cases using [language and framework to be used] and the code snippet provided below.

Copied!

Identify Anomalies in Python

Coding

Assume you are a Python developer. Can you develop a code that identifies anomalies in a given dataset?

Copied!