o1-mini-2024-09-12· openai
from WildChat-4.8M
design and create a prompt that indicates the task of refactoring my code, taking this…
Rate quality
Private research annotation
Sign in to add a private research label or note.
- User
design and create a prompt that indicates the task of refactoring my code, taking this into account:
- raise my code to a professional level.
- modularize it to an exceptional level.
- eliminate redundancies and dead code.
- optimize the code to its maximum efficiency level.
- document the code with comments in it.
- add unit tests.
- style the code. to complete this task you must reason step by step to deliver the best result. the prompt must be in a single paragraph of plain text, within a block of code.
- Assistantplaintext
Refactor my code to a professional level by modularizing it exceptionally, eliminating redundancies and dead code, optimizing it for maximum efficiency, thoroughly documenting it with comments, adding comprehensive unit tests, and applying consistent styling. To complete this task, reason step by step to deliver the best result.