[Language/Framework]-Specific Prompts
Introduction
Why Use Language-Specific Prompts
Python Prompts
Python General Template
SITUATION: Developing [describe component/feature] using Python [version]
CHALLENGE: Implement [specific functionality] following Pythonic principles
AUDIENCE: Python developers familiar with [beginner/intermediate/advanced] concepts
FORMAT:
- Follow PEP 8 style guidelines
- Use descriptive variable and function names
- Implement appropriate error handling with specific exceptions
- Include docstrings for all functions/classes (Google style)
- Apply type hints where appropriate
FOUNDATIONS:
- Use Python's built-in functions where applicable
- Follow the principle "better to ask forgiveness than permission" (EAFP)
- Leverage list/dict comprehensions where appropriate
- Use generator expressions for large datasets
- Implement proper resource handling (context managers)
SPECIFIC REQUIREMENTS:
- Compatible with Python [version] and above
- Minimize external dependencies
- Include appropriate unit tests
- Handle edge cases properlyDjango Framework Template
FastAPI Template
JavaScript/TypeScript Prompts
JavaScript Modern Template
TypeScript Template
React Framework Template
Angular Framework Template
Java Prompts
Java Modern Template
Spring Boot Framework Template
C# / .NET Prompts
C# Modern Template
ASP.NET Core Template
Ruby Prompts
Ruby General Template
Ruby on Rails Template
Go Prompts
Go Template
PHP Prompts
PHP Modern Template
Laravel Framework Template
Mobile Development Prompts
Swift for iOS Template
Kotlin for Android Template
Flutter Cross-Platform Template
Database-Specific Prompts
SQL Database Template
MongoDB Template
Best Practices for Language-Specific Prompts
Request Idiomatic Code
Specify Version Compatibility
Request Performance Considerations
Evaluating Language-Specific Results
Example: Contrast Between Languages
Problem: Implement a function to calculate statistics (mean, median, mode) for a list of numbers
Conclusion
Last updated