Best For
- Starting from a structured, reusable prompt instead of a blank chat.
- Adapting the prompt to your own inputs while keeping the original intent intact.
- Workflows related to Software Development.
Translate a snippet of code from one programming language to another while maintaining logic and efficiency.
Please translate the following code from {{Source:[programming_languages]}} to {{Target:[programming_languages]}}.
Ensure that the translated code follows the best practices and idiomatic conventions of {{Target:[programming_languages]}}.
Code to translate:
```{{Source:[programming_languages]}}
{{Code: // paste the code here}}
```
[programming_languages]
[programming_languages]
// paste the code here
Please translate the following code from [programming_languages] to [programming_languages]. Ensure that the translated code follows the best practices and idiomatic conventions of [programming_languages]. Code to translate: ```[programming_languages] // paste the code here ```
Variables are wrapped in {{ and }} and follow this pattern:
A selection can reference a predefined variable list using square brackets. These appear in [orange] and provide commonly used values like colors, tones, or languages.
You can also provide an inline list of choices separated by commas.
Tip: You don't need the PUCO app to use these prompts! Simply copy the template and replace each {{…}} section with your own text directly in ChatGPT, Claude, Gemini, or any other AI assistant.