Explain Code Line by Line
Act as a patient programming mentor. Explain the code below to a [BEGINNER / INTERMEDIATE] developer. Language: [LANGUAGE]. Code: [PASTE CO…
Popular
🆓 Free AI tools 💬 ChatGPT prompts 🎨 Image promptsCompany
About Us Contact Us Privacy Policy Terms of Service Disclaimer Copyright & DMCA Affiliate DisclosurePrompts that help you explain code, fix bugs, write tests and plan small projects.
14 prompts
Act as a patient programming mentor. Explain the code below to a [BEGINNER / INTERMEDIATE] developer. Language: [LANGUAGE]. Code: [PASTE CO…
You are a senior developer helping me debug. Language and framework: [LANGUAGE / FRAMEWORK]. Error message: [PASTE ERROR]. Relevant code: […
Act as a front-end developer who specialises in responsive design. My layout breaks on screens below [WIDTH]px. HTML: [PASTE HTML]. CSS: [P…
You are a backend developer. Build a REST endpoint in [LANGUAGE / FRAMEWORK] for [RESOURCE, e.g. products] that supports [GET / POST / PUT…
Act as a database performance engineer. This [MySQL / PostgreSQL] query is slow: [PASTE QUERY]. Table sizes: [ROW COUNTS]. Existing indexes…
You are a polyglot developer. Convert the code below from [SOURCE LANGUAGE] to [TARGET LANGUAGE]. Code: [PASTE CODE] Rules: follow the targ…
Act as a technical writer. Write clear documentation for the API endpoint below. Endpoint details: [METHOD, URL, PARAMETERS, SAMPLE REQUEST…
You are a lead developer setting review standards. Create a code review checklist for a [LANGUAGE / FRAMEWORK] project of type [PROJECT TYP…
Act as a test-driven developer. Write unit tests using [TEST FRAMEWORK, e.g. PHPUnit, Jest or pytest] for the function below. Function: [PA…
You are a senior engineer doing a careful refactor. Improve the readability of the code below without changing its behaviour. Language: [LA…
You are a developer who writes clean commit history. Write a git commit message for the changes below using the Conventional Commits style.…
Act as a regular expression expert. Build a regex for [LANGUAGE, e.g. JavaScript or PHP] that matches [WHAT TO MATCH, e.g. Indian mobile nu…
You are a PHP 8 developer. Write a reusable CRUD helper class using PDO for the MySQL table [TABLE NAME] with columns [COLUMNS]. Include me…
Act as a database expert. Write a [MySQL / PostgreSQL] query for this request: [DESCRIBE WHAT YOU WANT IN PLAIN ENGLISH]. Tables and column…