Comparative prompting asks an AI system to evaluate multiple technical approaches against explicit criteria and explain their tradeoffs before implementation. section 9.6.1
Choosing a data store
Compare MongoDB vs PostgreSQL for our user management system, considering scalability, query complexity, data consistency requirements, and maintenance overhead. section 9.6.1
Apply the technique to decisions that benefit from explicit alternatives and criteria:
- Ask which design patterns could handle dynamic pricing, then compare Strategy, Template, and Chain of Responsibility before choosing one. section 9.6.1
- State the dimensions that matter, such as scalability, query complexity, consistency, maintenance, or implementation tradeoffs. section 9.6.1
