Software Engineer Prompts
Enhance your coding workflow with these AI prompts designed specifically for software engineers.
Code Debugging
Use this prompt when you need help identifying and fixing bugs in your code.
I have an issue with my [LANGUAGE] code. Here's what it's supposed to do: [DESCRIPTION OF EXPECTED BEHAVIOR] Here's the code: ``` [YOUR CODE HERE] ``` Here's the error message or unexpected behavior I'm experiencing: [ERROR MESSAGE OR DESCRIPTION OF ISSUE] Can you help me identify what's wrong and how to fix it?
Code Review
Use this prompt when you want a thorough review of your code with suggestions for improvement.
Please review my [LANGUAGE] code and suggest improvements for readability, performance, and best practices: ``` [YOUR CODE HERE] ``` I'm particularly interested in: - Performance optimizations - Code structure and organization - Following [LANGUAGE] best practices - Potential bugs or edge cases I missed
Algorithm Implementation
Use this prompt when you need help implementing a specific algorithm.
I need to implement [ALGORITHM NAME] in [LANGUAGE]. Here are the requirements: - [REQUIREMENT 1] - [REQUIREMENT 2] - [REQUIREMENT 3] Here's my current approach: ``` [YOUR CODE OR PSEUDOCODE HERE] ``` Please help me implement this algorithm efficiently with explanations of the approach.
Modern Parallax Website Design
For creating a modern website with parallax scrolling effects and optimized performance.
I need to design and implement a responsive website with parallax scrolling effects using [FRAMEWORK] (e.g., React, Vue, Angular). Technical requirements: - At least 3 sections with different parallax depths - Smooth scrolling animation at 60fps - Responsive design that works on mobile devices - Accessibility compliance (WCAG AA) - SEO optimization Current tech stack: ``` [YOUR TECH STACK, e.g., React, Framer Motion, Tailwind CSS] ``` Please provide: 1. Component architecture 2. Implementation approach for the parallax effect 3. Performance optimization strategies 4. Code example for a main parallax component
iOS App Development
For building a native iOS app with specific measurement and calculation capabilities.
I'm developing an iOS app that calculates [TYPE] measurements (e.g., water levels, distances, volumes) using Swift. App requirements: - User interface with [SPECIFIC FEATURES] - Real-time calculation of [MEASUREMENT TYPE] - Support for multiple measurement units - Data persistence - Optional: AR capabilities for [SPECIFIC FUNCTIONALITY] Technical constraints: - iOS [VERSION] and above - Swift [VERSION] - [ANY OTHER CONSTRAINTS] I need help with: 1. Overall architecture (MVVM, MVC, etc.) 2. Implementation of the core calculation logic 3. UI/UX design approach 4. Data model design 5. Any relevant iOS frameworks I should leverage
Microservices Architecture
For designing or migrating to a microservices architecture.
I need to [DESIGN/MIGRATE] a [NEW/EXISTING] application to use a microservices architecture. Current system: ``` [BRIEF DESCRIPTION OF CURRENT ARCHITECTURE OR REQUIREMENTS] ``` Business requirements: - [REQUIREMENT 1] - [REQUIREMENT 2] - [REQUIREMENT 3] Technical goals: - Independent deployment of services - Scalability for [SPECIFIC COMPONENTS] - Fault tolerance and resilience - [ANY OTHER GOALS] Please provide: 1. Service boundary identification strategy 2. Data management approach (shared DB, service-specific DB, event sourcing, etc.) 3. Communication patterns (sync vs async) 4. Deployment and CI/CD considerations 5. Monitoring and observability recommendations
ML/AI Integration
For integrating machine learning or AI capabilities into existing applications.
I need to integrate [TYPE OF ML/AI CAPABILITY] into my [APPLICATION TYPE]. Use case: [DESCRIBE SPECIFIC USE CASE] Current tech stack: ``` [YOUR TECH STACK] ``` Data available: - [DATA SOURCE 1] - [DATA SOURCE 2] - [DATA SOURCE 3] Constraints: - [CONSTRAINT 1, e.g., privacy requirements, compute limitations] - [CONSTRAINT 2] - [CONSTRAINT 3] Please provide: 1. Recommended ML/AI approach 2. Architecture for integration 3. Data pipeline considerations 4. Evaluation metrics 5. Implementation roadmap
Serverless Architecture Design
For designing cloud-native applications using serverless technologies.
I need to design a serverless architecture for [APPLICATION TYPE] using [CLOUD PROVIDER] (AWS, Azure, GCP). Application requirements: - [REQUIREMENT 1] - [REQUIREMENT 2] - [REQUIREMENT 3] Expected load/scale: - [TRAFFIC PATTERNS] - [DATA VOLUME] - [CONCURRENCY REQUIREMENTS] Constraints: - [BUDGET CONSTRAINTS] - [COMPLIANCE REQUIREMENTS] - [PERFORMANCE REQUIREMENTS] Please provide: 1. Serverless component architecture 2. Data storage recommendations 3. API design 4. Cost optimization strategies 5. CI/CD approach 6. Monitoring and debugging strategy
System Performance Optimization
For diagnosing and resolving performance issues in complex systems.
I need to optimize the performance of my [SYSTEM TYPE]. Current performance: - [CURRENT METRICS, e.g., response time, throughput] - [BOTTLENECKS IF KNOWN] System architecture: ``` [BRIEF ARCHITECTURE DESCRIPTION] ``` Technologies used: - [TECHNOLOGY 1] - [TECHNOLOGY 2] - [TECHNOLOGY 3] Target performance: - [TARGET METRICS] Please provide: 1. Performance analysis methodology 2. Likely bottlenecks based on the architecture 3. Optimization strategies with priority order 4. Monitoring recommendations 5. Testing approach to validate improvements
Blockchain Application Development
For building decentralized applications or implementing blockchain technology.
I need to develop a [TYPE] application using blockchain technology. Use case: [DESCRIBE SPECIFIC USE CASE] Requirements: - [REQUIREMENT 1] - [REQUIREMENT 2] - [REQUIREMENT 3] Blockchain preferences (if any): - [PREFERRED BLOCKCHAIN, e.g., Ethereum, Solana, Hyperledger] - [SMART CONTRACT REQUIREMENTS] - [CONSENSUS MECHANISM PREFERENCES] Please provide: 1. Blockchain platform recommendation with rationale 2. Architecture approach 3. Smart contract design 4. Security considerations 5. Implementation roadmap 6. Testing strategy