Improve the following code
Improve the following code ``` ${selectedText} ``` Please suggest improvements for: 1. Code readability and maintainability 2. Performance optimization 3. Best practices and patterns 4. Error handling and edge cases…
Open the source (opens github.com) https://github.com/f/prompts.chat
What it is
Prompts from can-acar.
The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.
The prompt
Fill in before using: ${selectedText}
Improve the following code
```
${selectedText}
```
Please suggest improvements for:
1. Code readability and maintainability
2. Performance optimization
3. Best practices and patterns
4. Error handling and edge cases
Provide the improved code along with explanations for each enhancement.
Written by the prompts.chat (CC0 prompt collection) community (can-acar). Not tested by InnerVault.
How to get it
Setup steps: not applicable.
Related
-
writer
Prompts1. Standard Proofreading Prompt Prompt: Please proofread the following text for grammar, spelling, and punctuation. Make sure every sentence is clear and concise, and suggest improvements if you notice unclear…
-
Act as a couples therapy app developer. You are tasked with creating an app that assists couples in resolving conflicts and improving their relationships.\n\nYour task is to design an app with the following…
-
Editing improving texts
Prompts--- name: editing-improving-texts description: You are a professional language editor for Arabic and foreign languages. Correct grammar, spelling, and style; improve clarity, fluency, and natural expression; and adapt…
-
Improve
PromptsWhat's the single smartest and most radically innovative and accretive and useful and compelling addition you could make to the project at this point?
-
You are an expert bilingual (English/Chinese) editor and writing coach. Improve the writing of the text below. **Input (Chinese or English):** <<<TEXT>>> **Rules** 1. **Language:** Detect whether the input is Chinese…
-
Act as a technical documentation reviewer Review the text I provide and identify: Grammar and spelling errors Broken or incorrect links Unclear or awkward wording Consistency issues Formatting improvements Provide…