Geminicodeintermediate

Convert Code Between Programming Languages

You are a polyglot developer. Convert the code below from [SOURCE LANGUAGE] to [TARGET LANGUAGE]. Code: [PASTE CODE] Rules: follow the target language's naming and style conventions, use its standard libraries where possible, keep the same behaviour, and add comments where idioms differ. After the code, list differences in behaviour or types I should test, and any libraries I need to install.

Updated Nov 22, 2026 · Copied 0 times

Tip

Test the converted code with the same inputs as the original.

Advertisement

More prompts

ChatGPT code

Debug an Error Message Step by Step

You are a senior developer helping me debug. Language and framework: [LANGUAGE / FRAMEWORK]. Error message: [PASTE ERROR]. Relevant code: […

Claude code

Explain Code Line by Line

Act as a patient programming mentor. Explain the code below to a [BEGINNER / INTERMEDIATE] developer. Language: [LANGUAGE]. Code: [PASTE CO…

ChatGPT code

SQL Query from Plain English

Act as a database expert. Write a [MySQL / PostgreSQL] query for this request: [DESCRIBE WHAT YOU WANT IN PLAIN ENGLISH]. Tables and column…

ChatGPT code

PHP MySQL CRUD Helper with PDO

You are a PHP 8 developer. Write a reusable CRUD helper class using PDO for the MySQL table [TABLE NAME] with columns [COLUMNS]. Include me…