Prompt template
Run these steps in order.
01
Analyze the given code to identify the programming language used. 02
Identify the parts of the code that can be optimized according to best practices for that language. 03
Explain why these parts need optimization, focusing on making the code smaller, faster, and adhering to clean code architecture principles. 04
Rewrite the identified parts with optimized code, following best practices and ensuring improvements in efficiency and readability. 05
Ensure all output is provided in TARGETLANGUAGE. 06
Apply these steps sequentially and completely without skipping any.