Tell the AI what you want AND what you don't want. Constraints to specify:
- Programming language and version
- Frameworks and libraries to use (or avoid)
- Coding style and conventions
- Error handling approach
- Performance requirements
The more constraints you provide, the closer the output matches your expectations.