Tagged Questions
Configuration is an arrangement of functional units according to their nature, number, and chief characteristics.
1
vote
2answers
65 views
Creating a singleton to access static data
I have some properties in a property file that I referenced in a singleton so that I can access them easily from different parts of my application. For each property, I put the properties along with ...
5
votes
2answers
93 views
How to properly handle global parameters for unit testing in python?
We are implementing many algorithms which typically have lots of shared, publicly known and security-relevant parameters.
Currently, we simply use a class holding all the parameters and two ...
3
votes
3answers
278 views
Is it fine to trap users in a dialog until they enter valid values into components? [closed]
Assume I have a modal dialog where I allow the user to change values of an encapsulated configuration through different UI components and I want to save the effort to implement a validation per ...
9
votes
2answers
225 views
Effectively tracking changes to configuration from dev to prod
This question takes a Spring Boot service as an example, but it could be any technology.
Assuming the following:
Environments (dev/qa/prod) are owned by different teams. This means dev must not have ...
5
votes
1answer
136 views
Deciding what values should be configurable
My application is a Java program that controls a robot (which is essentially a raspberry pi hooked up to a lot of devices). There are many devices on the robot that have semi constant address values ...
12
votes
4answers
287 views
+50
Best practices for handling large number of structured configuration/property files
Imagine a system that has a large number of servers. Each of them has a number of settings:
Some specific to the server
Some specific to the region
Some common across all of them
Maybe you can have ...
3
votes
1answer
65 views
Configuring entity behavior DDD
In one of the products I work with we have an aggregation root with a lot of domain logic, and now I have a requirement to make one small piece of behavior configurable.
To give an example, let's say ...
3
votes
2answers
116 views
How to write System requirements - not all architectures fulfill all requirements
We have a system that is largely configurable, that can be organized in different architectures, and I'm struggling to write its requirement specification. I'll give an example
Module 1 does A
Module ...
3
votes
6answers
229 views
Configuration object vs function
I'm designing a configurable api and I've seen a few ways to accept options from the caller.
One is using an options object like so:
var options = new MyApiConfigurationOptions {
Option1 = true,...
0
votes
1answer
89 views
Does C# project with configuration file only seem to be an architecture flaw?
I have multiple related projects in one Visual Studio C# solution, which in general have similar architecture of WCF business logic services and ASP.NET clients.
In order to host these services, I ...
1
vote
2answers
214 views
Is it a good programming practice to store java properties keys in ENUM for validation once application starts?
Sample Java properties file which is read by the properties class
appl.component1.property1=value1
appl.component1.property1=value2
Custom class which extends the java.util.Properties class adding ...
3
votes
2answers
214 views
Should I use Lua for writing config files?
I heard that Lua is great for configuration files, so long as you are secure about it. Lua has been used as config files by programs such as awesome and (recently) conky.
However, I also heard that ...
4
votes
5answers
153 views
What Semantic Version increment to use for a configuration file alteration?
Using Semantic Versioning, I have a product that is version 1.0.0. It has a configuration file entry shipped with the product that specifies an operation timeout value:
myTimeout=1000
I need to ...
0
votes
1answer
54 views
What are data format providing structural information? [closed]
I have a built a toy server framework that provides very extensive configuration options. In configuration, one can for example define instances of modules with each providing generic options, such as ...
0
votes
0answers
25 views
Typical Practice for external application config
I have a C# cmdlet(1) that uses "ConfigurationManager.AppSettings" to get database connection strings necessary for some stored procedures used in the cmdlet(1). If another application instantiates an ...
5
votes
0answers
96 views
DI/IoC container vs factories: Where do I configure my application and why?
I am trying to figure out when to use the DIC/IoC registry for configuring my software and when to use factories, along with the reasoning behind either approach.
I am using StructureMap as my DI ...
0
votes
2answers
186 views
Best Practice for supporting multiple login configs across Environments
This question has more to do with the structure and access of different configurations across a number of levels of development. What I mean by 'levels of development' is environments where the ...
1
vote
1answer
68 views
ASP.net using Resource (resx) for Configuration
Let me start with the fact that I'm prepared for this question to be closed as opinion based, but I am going to attempt to phrase it in such a way to keep it less based on opinions.
The Short Version
...
1
vote
1answer
59 views
Why store app configuration in a data file instead of code esp. when using Continuous Integration?
Consider the following CI procedure is in place:
Builds are only deployed (semi-)automatically.
All changes are version-controlled.
Configuration is fixed per environment.
Why use data files (*....
2
votes
0answers
26 views
How to set up embedded projects for maintainability
We are about to start using FreeRTOS with lwip and mbed-tls as a platform for new products.
We're working in an Linux environment and I'm tasked with setting up our first project.
In Linux we ...
2
votes
1answer
48 views
Configuration related defines in public header?
Suppose you're building some library, C or C++ doesn't really matter for this question, IMO. The features (or implementation thereof) depend on capabilities of the target system.
A simple, probably ...
2
votes
1answer
78 views
Per-Module Unit Testing in ZF2
This question is about handling namespaces and unit testing in ZF2.
Let's say I have a module called Application. I have constructed composer.json to be like so
"autoload":{
"psr-4": {
"...
5
votes
4answers
170 views
Compile time configuration: programmatic or file based?
We need to customize a desktop application at compile time. Users cannot change the configuration. Only developers and release managers can do it.
The configuration is a little complex. There are ...
0
votes
1answer
78 views
How to import driver details and Connection details without writing it manually or hard coding?
class ConnectionUtil{
public static void main(String args[]){
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection(
"jdbc:oracle:thin:@localhost:...
1
vote
2answers
138 views
Working with multiple environments and vNext best practice
The new ASP.NET documentation under Fundamentals/Working with Multiple Environments it has a detailed description of how to handle multiple environments (surprise surprise) in code.
I was wondering ...
2
votes
3answers
272 views
The way to implement a configurable (at run-time) default style
I am coding a visualizer of graph algorithms. Each vertex of the graph has a style (color, size etc.). As long as the algorithm has done nothing to a vertex, that vertex has a default style. The ...
0
votes
1answer
27 views
How to store the current version of an instance? Store reference to specific instance?
I'm working on a project with has different checklists (questions and answers) associated with an entity (Protocol). There is a business requirement to have these questions be altered in the future ...
3
votes
1answer
990 views
How to access environment-specific configuration in an enterprise application?
My application is a generic enterprise application which can be deployed on any application server running on any OS.
I don't know how/where to configure my application, except for the database ...
0
votes
2answers
591 views
Whether to use enum vs map vs config file?
I have ~30 resources each having ~10 attributes. I want to store some information about each attribute. Ex: its multiplicity, it RW (Read/Write), RO (Read only), longName, shortname.
So I was ...
1
vote
3answers
148 views
Is increasing codebase size and complexity worth it to make fully configurable?
I'm re-creating a web app (Google Apps Script) that i made a couple months ago, and decided that I wanted to make it fully configurable this time around. So that I don't have to go in any change any ...
2
votes
2answers
84 views
Where to put configuration constants?
Considering a small embedded C project, how to decide if certain constants belong to
a global configuration file
the header of the "module == compilation unit"
on top of the the actual C file
or ...
-2
votes
1answer
167 views
Should I be using XML to store configuration values in a database?
There are a couple of answers on SE comparing single-row table vs. name-value-pair table used for config settings, but I haven't seen anyone arguing for using XML (or JSON) as a name-value pair ...
1
vote
1answer
57 views
Encapsulate algorithm configuration in system hierarchy [closed]
Say, I'm building a system that uses various complex algorithms (k means, mean shift, a few others), all of which are parameterized. I'm highlighting `uses', because the system is not just a thin ...
2
votes
2answers
137 views
Where should you store/how should you control access to application secrets?
There are these relevant questions questions:
Strategy for keeping secret info such as API keys out of source control?
How do you deal with configuration files in source control?
How to version ...
1
vote
1answer
41 views
Configuration Files For Web Applications
I am building a MVC application. This app has a core which is where all interfaces, abstract classes and operation logic are situated. It also contains a directory called module, this application is ...
0
votes
1answer
363 views
C# Application GUI design dependent on configuration
I have built quite big WinForms application working in industry for a few years. It communicates with many HW devices. Application can be configured to use or not use some of these devices and GUI is ...
0
votes
2answers
89 views
Single File for different versions of a configuration file
Please suggest best design for accomodating different versions of configuration file(INI format) into a single file. My requirement is I have three different versions of a configuration say V1.config, ...
0
votes
1answer
143 views
Where is the appropriate place to put application configuration files for each popular operating system? [duplicate]
Before writing this question, I'd like to state that I use Linux on a daily basis, which is why I'm creating this post to extend my knowledge of the other main operating systems I'm concerned about, ...
1
vote
2answers
177 views
Throwing exceptions in application configuration providers
Simple question: What is the best/common practice regarding to throwing errors for application configuration providers?
Given is a simple key/value-based configuration source:
class Configuration
...
0
votes
1answer
63 views
Creating service to distribute passwords to architecture
We have big legacy code working for big corporation connecting to multiple remote/local databases.
The configuration files with IP, name and password for connecting to different databases are now ...
5
votes
4answers
558 views
Should an application configuration interface be broken into multiple interfaces to reduce feature creep?
My windows service is neatly separated into 5 components - each with their own interface and pulled together by a bootstrapper. One of my requirements is to provide configuration options in my app....
0
votes
1answer
121 views
Configuration file for a generic log file parser
Our company uses multiple log file formats.
We would like to develop a series of tools to parse them, often the same core functionality for multiple log file formats.
A classical example is ...
5
votes
1answer
568 views
How to load environment configuration
In Java the typical way of storing configuration is by using property files. So I have several such files, one for each environment type (dev, test, prod, ...).
This configuration is needed in ...
1
vote
1answer
284 views
Visual Studio VC Project With Multiple Output Versus Multiple Projects
I am working in Visual Studio 2012. I have several C projects in a single Solution. Each project currently produces a single production output (dll/exe) and a single test (exe). I manage the multiple ...
5
votes
2answers
443 views
Should I have a separate XML settings file for my application?
I want to be able to add some objects to my application by simply adding a XML node to a config file. Should I put it in the app.config file or should I make a separate XML config file? A node would ...
4
votes
3answers
201 views
Instantiating class that contains methods to check some of the settings and also return values from my app.config file
I am writing a console application and have a class called ApplicationConfiguration that contains methods to check some of the settings and also return values from my app.config file. For instance ...
2
votes
2answers
135 views
How to handle large number of configuration parameters across a program conceptually?
Imagine a software system where you have like 100 parameters, each of which is sensible to change (in my case this is a reasearch system for machine learning). The obvious solution is to store all ...
0
votes
2answers
250 views
What are some (best) practices of organizing configuration data for applications? [duplicate]
I am working on an application (in php) that needs some rules to evaluate the labelling of some data. Since these rules might change someday, I decided not to hardcode them, rather handle them as ...
3
votes
3answers
275 views
How to best encapsulate features in code and enabling/disabling them at runtime?
I would like to be able to abstract each feature developed by the team in a way that it can be enabled or disabled at runtime by using a distributed shared configuration system. Features are small and ...
9
votes
7answers
3k views
What is the preferred way to store application configurations?
Most of the time, I store development application config in root directory of the project, like this:
app
|-- config.json
But that doesn't seem to be the best approach, since this config ends up ...