Reviewing AI's config architecture proposal
You're reviewing GreenGrid's monitoring pipeline code, which has all its settings hardcoded in Python files. The terminal shows the current code with hardcoded thresholds, API settings, database credentials, and energy calculation constants.
Your task: Copy the code into the AI chat and ask it to propose which values should move to config files. Pay attention to how the AI distinguishes between operational settings and domain-validated constants.
After analyzing the code with AI, which value should remain in source code rather than being externalized to configuration?
Questo esercizio fa parte del corso
Advanced AI-Assisted Coding for Developers
Esercizio pratico interattivo
Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi
Inizia esercizio