generate_code_example
Create before-and-after code examples for learning topics to illustrate concepts like 'Feature Envy' or 'DRY Principle' in a specified programming language, enhancing technical coaching sessions.
Instructions
Generate detailed before/after code examples for a learning topic
Input Schema
Name | Required | Description | Default |
---|---|---|---|
language | No | Programming language for examples (default: javascript) | javascript |
topic | Yes | The learning topic (e.g., 'Feature Envy', 'DRY Principle') |
Input Schema (JSON Schema)
{
"properties": {
"language": {
"default": "javascript",
"description": "Programming language for examples (default: javascript)",
"type": "string"
},
"topic": {
"description": "The learning topic (e.g., 'Feature Envy', 'DRY Principle')",
"type": "string"
}
},
"required": [
"topic"
],
"type": "object"
}