News for hackers. Stuff that matters.
Re:Make hard coding your default choice by taylodl on Monday June 08, 2015 @09:14AM (#9678770)
"The possibility to change the minimum log level required to trigger the rule seems sensible because we might want to adjust it on the fly for debugging reasons. Nevertheless, odds are we never appeal to it in practice. So, we are better off removing this setting as well."

Everything was going fine until I got to this point. You can't tell when you'll need to adjust the log level on the fly and he's right in stating most likely you'll never do it, but when you need to do it you need to do it - and predicting that need is impossible. This is one of those rare things where it's better to have it and not need it than to need it and not have it.

Otherwise this is a good article on addressing the issue of configuration hell.

Re:Make hard coding your default choice by lmm on Monday June 08, 2015 @10:22AM (#9679230)
If you can't deploy your application in half an hour and without interrupting service, you have bigger problems; solve those first.

Maybe you'll need to change the log level faster than that. Maybe you'll be hit by a meteorite. But building in that kind of flexibility isn't worth it.

Re:Make hard coding your default choice by wallyhs on Monday June 08, 2015 @12:28PM (#9680120)
Since the site is Enterprise Craftsmanship, I read it from that angle. In my experience, deployments must be requested several days in advance and require approvals from managers, testers, analysts, and functional experts. Quick "emergency" changes require extra approvals and are reviewed periodically. Minor configuration changes don't have nearly as many restrictions.

In that type of environment, I think it is absolutely worth the flexibility. And "building in" that kind of flexibility means to, um, add a line to the existing configuration file.

Re:Make hard coding your default choice by falcolas on Monday June 08, 2015 @09:59AM (#9679063)
I find the happy medium here is a command line parameter. Hard code the default to something sensible, and have a command line parameter (-v) which overrides the sensible default. No need to recompile, no need to worry about the parameter 99% of the time.
Re:Make hard coding your default choice by reagency on Monday June 08, 2015 @10:06AM (#9679116)
This is how almost everything works now and so it's weird to even have he discussion.
Re:Make hard coding your default choice by jameshart on Monday June 08, 2015 @10:21AM (#9679219)
Great! Now how do I pass a command line parameter to my web application? Or to a mobile app?
Re:Make hard coding your default choice by vambo on Monday June 08, 2015 @09:50AM (#9678996)
It was also going fine for me up to that section but for different reasons: I think it makes sense to postpone/avoid externalizing configuration, but in case where a configuration is the default format (e.g. logging), going the extra mile to define that in code is both time-consuming and produces a less readable result. So I think the goal should not be to avoid configuration files, just avoid wasting time in making things configurable which probably never need to be re-configured.

Your point is also very valid though.