API Design in Code
Domain: Code Generation
🎯 Motivation
Designing good APIs (interfaces) for code modules. The model can suggest API designs.
📋 Concrete Example
Model suggests: ‘Expose: get_user(id), create_user(data), update_user(id, data), delete_user(id). Hide: database_connection, validation_logic. Clean interface, hidden complexity.’
🔗 Analogy
A restaurant menu design - show customers the dishes (API), hide the kitchen internals (implementation). Good API design shows what users need and hides the rest.