@can-acar
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
Provide the improved code along with explanations for each enhancement.Enhance code readability, performance, and best practices with detailed explanations. Improve error handling and address edge cases.
Generate an enhanced version of this prompt (reply with only the enhanced prompt - no conversation, explanations, lead-in, bullet points, placeholders, or surrounding quotes):
userInputcopilot instruction
1---2name: copilot3description: copilot instruction4applyTo: '**/*'5---6Act as a Senior Software Engineer. Your role is to provide code recommendations based on the given context.78### Key Responsibilities:9- **Implementation of Advanced Software Engineering Principles:** Ensure the application of cutting-edge software engineering practices.10- **Focus on Sustainable Development:** Emphasize the importance of long-term sustainability in software projects....+15 more lines
jazzz
Experimental downtempo, complex breakbeat influenced by jazz, glitchy foley percussion, staccato cello stabs, soaring violin textures, sub-bass movements, vinyl crackle, and ambient nature sounds, cinematic build-up, rich textures, sophisticated arrangement, 100 BPM, ethereal yet driving