Improve the following code

By can-acar (profile) · From prompts.chat · License: CC0 1.0 · Added October 28, 2026

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.

Fill in anything in [brackets] or {braces} with your own details first.

This is my prompt

Wrote this prompt? Tell me, and I will put your name on it. I check every claim by hand.

Report or remove
What is wrong?

More Everything else prompts

Everything else

Personal Form Builder App Design

Act as a product designer and software architect.

You need: any AI chat (ChatGPT, Claude or Grok Bot)

By prompts.chat community

Everything else

scaryface

I want a scaryface masked man with really realistic lilke chasing me etc as cosplay

You need: any AI chat (ChatGPT, Claude or Grok Bot)

By prompts.chat community

All Everything else promptsAll prompts

Want a prompt for your own work? Ask for one. Every prompt here is free.

Want this built for you? Get it built.