News for hackers. Stuff that matters.
Re:.NET Core 3.0 Concludes the .NET Framework API Porting Pr... by thomasz on Tuesday October 15, 2019 @08:36AM (#21257727)
The asp configuration thing is complicated but powerful. If you don't want that, you can just use ``Environment.GetEnvironmentVariable`` and be done with it.
Re:.NET Core 3.0 Concludes the .NET Framework API Porting Pr... by shhsshs on Tuesday October 15, 2019 @08:42AM (#21257759)
Plus it’s barely any extra work to load settings from environment variables. And it lets you write code agnostic to where the settings are coming from, and then choose to load them from environment variables, a file, hard coded values, etc.

Makes testing easier too because you don’t have to write a fixture around your settings. Just build the class with known setting values without writing code purely for testing.