I have grabbed the following text from a book learning Programming Languages:
OK, so what approach should you take within your application to make determinations on configuration based on the development environment (e.g., use this connection string for Development and this one for Production)? Well there are a number of different answers to that; to my mind there are two broad approaches:
- “Manually” determine the environment in your code, and take the necessary action.
- Leverage the power and behavior of the .NET Core Configuration API. We’re going to go with option 2. While option 1 is a possibility (indeed this pattern is used in many of the default .NET Core Projects – see the following example), I personally prefer to decouple code from configuration where possible, although it’s not always possible – that is why we’ll go with option 2.
Could anyone tell me what the highlighted part above mean?