InnerVault

Improve the following code

Indexedprompts.chat (CC0 prompt collection), can-acar

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

  1. writer

    Prompts

    1. 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…

    Indexed prompts.chat (CC0 prompt collection), this-is-lab CC0-1.0

  2. 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…

    Indexed prompts.chat (CC0 prompt collection), q370n CC0-1.0

  3. --- 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…

    Indexed prompts.chat (CC0 prompt collection), tareqromeia@gmail.com CC0-1.0

  4. Improve

    Prompts

    What's the single smartest and most radically innovative and accretive and useful and compelling addition you could make to the project at this point?

    Indexed prompts.chat (CC0 prompt collection), grantcarthew CC0-1.0

  5. 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…

    Indexed prompts.chat (CC0 prompt collection), zzfmvp@gmail.com CC0-1.0

  6. 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…

    Indexed prompts.chat (CC0 prompt collection), updalla-apshir CC0-1.0