Configuration is an arrangement of functional units according to their nature, number, and chief characteristics.
4
votes
4answers
239 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 ...
0
votes
1answer
25 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 ...
4
votes
1answer
91 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
53 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
169 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 ...
0
votes
0answers
18 views
Application settings/configuration storage-Preferences over Configuration file? [duplicate]
Is there any advantage over any of these? I have application that reads its initial configuration from Preferences rather then creating and writing into configuration file somewhere in users ...
4
votes
3answers
128 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
40 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
0answers
31 views
Parameters from configuration files and dependency injection. What is the best way to combine them?
I am trying to figure out what is the best way to configure the services I want to be installed by the DI container.
Imagine to have a configuration provider that abstracts over the configuration ...
0
votes
2answers
73 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
166 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 ...
2
votes
3answers
185 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 ...
0
votes
3answers
328 views
Compile-time vs. run-time configuration
I'm starting new project and need to decide on how to handle configuration. I recently run into suckless project. While it has its own issues, I really liked its approach to configuration - just a ...
1
vote
1answer
142 views
Managing sets of configuration data for an Excel/VBA program
I have two versions of an "Excel-Tool", i.e. a spreadsheet with a lot of vba code. Lets say, this tool is used to monitor two facilities. Both facilities differ in minor aspects.
That means, I have ...
2
votes
1answer
123 views
Should I represent physical accessories of a system as classes in software?
I am redesigning a system comprised of a data-acquisition unit and a lot of different sensors (voltage sensor, angle sensor, pressure sensor, etc.).
In the software domain model, there is a base ...
3
votes
3answers
349 views
in C++, how to call an 'init' routine as a class is loaded?
I have a program that loads a bunch of "addons" (different meters that measure and display system values).
The "addons" have "grown" over time and the code of what addons to "activate",
and how many ...
7
votes
2answers
517 views
What is best practice to handle whitespaces when letting the user edit the configuration, the name=value pairs?
For instance, you let the user define the notorious path variable. How do you interpret apppath = C:\Program Files\App?
This looks like a programming language adopted practice to ignore the white ...
1
vote
0answers
72 views
Switch Configuration of Several .Net Programs for Several Sections in a Simple Way
We build a highly configurable .Net Client/Server application.
(Client is C#/WPF, Server is C#/WebService)
There is a single code base, but each customer has its own 'profile'.
The profile ...
3
votes
1answer
59 views
(HTML) Form structure storage
In the context of a single-purpose website/application (for instance, based on Symfony2), I wish to have a set of forms fillable by users which then will be sent out as a formatted email (with the ...
2
votes
3answers
309 views
How to deal with Windows .NET configuration files
We use the normal app.config file for the configuration of the application. Although it works for now it has some pretty significant drawbacks:
Upgrading an application with a modified app.config is ...
3
votes
2answers
117 views
How best to version control massive configuration for an application?
Apologies if this doesn't make sense, English is not my first language.
I'm working on an application where workflow is split into 'rules' that are defined on several pages of an Excel spreadsheet, a ...
1
vote
2answers
126 views
How to handle configuration of Python modules, especially when used standalone and in frameworks like Django
I am trying to package a Python module for pip, following the guide here.
One area I would like feedback on is best practices or convention for making my module configurable. The module is a library ...
2
votes
0answers
259 views
Caching Strategy: WCF Buffer pooling and size
I am currently trying to understand the best configuration for caching. I am using Azure In-Role caching (currently Colocated, but Dedicated at a later point) in a Web Api 2 application in .NET ...
-1
votes
2answers
105 views
What should config files and the bootstrap do? [closed]
I already read dozens of articles and questions/answers on SO and Programmers but I can't understand what config and bootstrap files are, in the context of a web application.
So my questions are :
...
2
votes
0answers
136 views
Directory access from PHP script [closed]
Introduction
I'm creating an Android app for webpage that runs on Joomla 1.5. Yes I know that it's an old version etc. but it's not my site and I can't do anything about it.
So basically I'm creating ...
0
votes
1answer
195 views
Project configs for Java projects
How to store configs for project in Java. In normally case i stored it in 'src/main/resources/' with *.properties. How best approach for storing projects config for development, local, production ...
2
votes
2answers
377 views
What is the benefit of passing a delegate to the constructor instead of just having the client code create and pass the ParserSettings?
When answering a question on Stack Overflow, the library appeared to have a weird way to specify configuration, through an Action passed to the constructor:
public Parser(Action<ParserSettings> ...
0
votes
4answers
104 views
Developing configuration syntax - best practise/rules/methods?
I am currently developing a small application, which checks if provided data meets certain requirements. The requirements are actually a long list, and might be changing, so I defined a syntax which ...
2
votes
1answer
100 views
Which approach would be better for persisting these overridable configuration keys and values? A simple key-value store, or a graph database?
I'm creating a system where there are config keys and values. So for example:
config.key = 10
Is an example of a configuration key and a value. These keys can also have overrides based on ...
0
votes
1answer
26 views
Requesting Advice Regarding Storing Encryption Keys
I am using HMAC to hash some data before inserting it in a database and currently I have my key as a static field.
Just wondering what the best practice regarding storing the key would be. Is having ...
5
votes
2answers
543 views
Where to store global enterprise properties?
I'm faced with a crowd of java applications, which need different global enterprise wide properties for operation, for example: hostname of the central RDBMS, hostname and location of the central ...
1
vote
1answer
100 views
How do you let a user choose the app database location?
Writing software for a client, and one of their requirements was that the user be able to specify where the application database is stored, be it on the local network or in an online repository.
I ...
1
vote
2answers
113 views
how do you manage api keys?
I have a few projects that use various webservices e.g. DropBox, AWS. For managing private information I use bash_profile which works great with heroku that uses env variables to manages secret ...
2
votes
1answer
203 views
Moving our web application from a windows development environment to linux environment seamlessly
I am trying to develop a web application on a windows machine using apache wicket, java, jquery etc. Apache wicket comes with an embedded jetty server. I am using eclipse as the IDE.
The application ...
2
votes
3answers
1k views
Best practice for configuration files in a website
I am creating something similar to a Content Management System, that can be downloaded and used by everyone that needs it. I've been working in web-development for a couple of years (mainly as a ...
1
vote
0answers
38 views
Class/Object with different sets of configurations, singletons etc (PHP)
I want to produce maintainable code for configuring one or multiple classes differently depending whether in a production or development environment.
For example, making a Paypal class/object that ...
0
votes
1answer
78 views
Encyption for passwords in config file? [closed]
I was wondering, if it makes sense to encrypt passwords for external services stored in my config file with an symmetric encryption algorithm?
On the one hand I think, if someone gets access to the ...
2
votes
2answers
112 views
Constants vs public properties for configuration
My application has a few high level configuration options such as directories which will be used for various things, database connection information and a few other settings which are required for the ...
3
votes
4answers
303 views
Using configuration to determine whether to handle exception or bubble it up
On a side project I'm working on I came up with a way of handling exceptions that's adjustable by configuration. So a try/catch block might look like this:
try
{
fileHelper.MoveFile(file, ...
1
vote
1answer
205 views
PHP - PSR 0 - Configuration Constants
This question is about PSR-0 autoloaded libraries and the way main configuration constants should be declared and used.
From your point of view (lib/framework developer), where/how should be declared ...
2
votes
2answers
355 views
Where to place configuration files sources
I am developing a C# windows service application, which have different configuration files for development, for production system, for test system, like:
Dev.config
Test.config
Prod.config
Now we ...
3
votes
6answers
1k views
PHP: A config file in .ini or .php format?
I'm working on a huge CMS system, and I asked myself what configuration format I should use.
There are two common formats for configuration files. The first one is an INI file, containg all the ...
1
vote
2answers
176 views
Specifying options “hard coded”, in an interpreted language
In a language like Python or JavaScript (NodeJS), is there anything wrong with defining "the configuration file" as a file which essentially hard-codes the configuration settings? For example:
...
1
vote
3answers
397 views
What is the best way to store configurations of shell/script code to execute later?
I am working on a tool (Python, may or may not be important) that will allow a user to maintain a configuration file containing arbitrary shell and/or language code to be executed on particular events ...
2
votes
2answers
163 views
What values in an application should be configurable?
What values in an application should be configurable, or otherwise not hard coded? Does this differ based on application type (batch vs UI) and are there any published standards or guidance on this ...
1
vote
2answers
127 views
How to make big chunk of hardcoded menuitems in a programmable way
So in the javascript app, we have a lot of repeated chunk of menu items with the specific settings: URL, Name, Title, etc etc (these settings sometimes can be optional). Here is the gist of the ...
1
vote
1answer
553 views
Multi-user Configuration Settings design
I am designing a flexible and extensible way to store configuration settings for users.
Database Table Design:
╔═════════════════════════════╗
║ ConfigurationItemDefinition ║
...
4
votes
1answer
606 views
LGPL, .lib, .dll, and linking
I am trying to build a project which uses an unmodified copy of libconfig (http://www.hyperrealm.com/libconfig/). libconfig is LGPL, but I don't want to open source any of my code. By my ...
3
votes
3answers
5k views
Configuration file that can be modified by user in C#
I want to create a configuration file (text file preferred) that can be modified by user. A windows service will read from that file and behave accordingly. Can you recommend a file format for this ...
2
votes
5answers
205 views
How many different configurations are used for software tests? [closed]
This article shows that for Android apps, software developers use between 30 and 50 different devices for compatibility tests.
I tried to find information about tests of applications on "classic" ...