You mix a few concepts here. The default value specified in the code should be specific to the local situation as "reasonable default value". If you want to have generally accepted default values, you need a preference provider that allows you to connect to both the default settings and user preferences. Something that can be a worthy project in itself.
Oh, and “reasonable defaults” is a great way to avoid configuration when it's not necessary, but allow the user or packer to provide better values if necessary.
@comment, I think I understand.
In the "local situation" I mean in the context of the code. For your GUI, you need a display value that represents what the stream is using. So I would use something like Worker.DEFAULT_TIMEOUT. Your worker will use the same default value. In this way, you retrieve the configured value or worker default by setting the worker behavior.
caskey
source share