I'm weighing pros and cons of different approaches for [FEATURE/PROBLEM].
Approach A: [DESCRIBE FIRST APPROACH]
Approach B: [DESCRIBE SECOND APPROACH]
Please help me think through:
1. What edge cases am I missing for each approach?
2. What are the tradeoffs of each approach?
3. Which approach scales better?
4. Performance implications of each?
5. Testing complexity differences?
Use the prompt
You can start the conversation in GitLab Duo Chat by replacing the placeholders with your problem and the two approaches you're considering. A little context—such as the code you're changing or a constraint you can't relax—helps Duo weigh the options against what matters to you.
Try it with an example
Would scanning a list or building an index be a better way to find a product? Explore how the answer changes as you tell Duo more about your application.