Hey Developers!  Unlock the Secret to Saving 100+ Hours with 10 ChatGPT Prompts

By Ravi Sharma

01/10

Comparing Code Frameworks

 Prompt:  I am developing an [describe what you're building] and would like to evaluate and compare [first comparison item] with [second comparison item].

LEFT VS RIGHT 

02/10

Rewrite your code to adhere to specific code guidelines

 Prompt:  "Rewrite the code below following the Google style guidelines for javascript. {enter code}"

Check the Sample Screenshot and results

03/10

Create your web app from Scratch by describing it

Prompt: Your task is to develop a secure web application using Golang and Angular, based on the specific information I provide about its requirements. Please design an appropriate architecture and write code accordingly. {requirements}

Check the Sample Screenshot and results

04/10

Comment Your Code for better readability

Prompt: Recreate the code snippet below, but please include comments to each line of code {enter code}

Check the Sample Screenshot and results

05/10

Improve your coding Skills and research

Prompt: What is the problem with this code can you improve it and explain it step by step

What’s the problem with this C++ code  int* foo() {       auto ret = new int;       int r2 = *ret * 2;      return &r2;  }

06/10

Prepare Code TestCases

Prompt:  "Write test cases for the main edge cases that could happen to the below code snippet. First outline the test cases you'll write. Second, write the test cases in javascript using the Jest framework. {enter code}"

Check the Sample Screenshot and results

07/10

Learn GIT Commands: Act as a GIT command Generator

Prompt: Act like a Git commands generator. I'll explain to you what I need you to do and you will provide me with the right Git command. My requirement is, {I want to push the example.txt file to the branch name example-branch}

Check the Sample Screenshot and results

08/10

Generating ReadMe files for the team members 

 Prompt:  "Generate  detailed instructions to allow a developer to run following code on a local machine, explain what the code does, and list vulnerabilities that exist in this code. {enter code}"

Check the Sample Screenshot and results

09/10

Write Descriptions and Articles about your Web App

Prompt: I will provide you with basic steps of an app functionality {enter steps} and you will come up with an engaging article on how to do those basic steps

Check the Sample Screenshot and results

10/10

Code convertor from one language to another

Prompt: Translate this code from JavaScript to Python {Enter code}

Check the Sample Screenshot and results

Bonus Page

Solving Leetcode Challenges

 Prompt:  Please write Python code that solves the following challenge: Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.