Configuration is an arrangement of functional units according to their nature, number, and chief characteristics.

learn more… | top users | synonyms

1
vote
0answers
24 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 ...
-2
votes
2answers
78 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 : ...
0
votes
1answer
70 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
115 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
1answer
49 views

Spring MVC Workflow: multiple configurations for dev, staging and production

I'm looking for info about best practices of handling multiple configurations (not to be confused with - multiple configuration files) for seamless development of Spring MVC based app. I come from ...
0
votes
4answers
97 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
51 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
23 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 ...
4
votes
2answers
169 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
81 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
95 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
143 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 ...
1
vote
3answers
349 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 ...
0
votes
0answers
28 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
74 views

Encyption for passwords in config file?

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
89 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
280 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, ...
0
votes
1answer
138 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
249 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 ...
0
votes
4answers
574 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
171 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
249 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
137 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
125 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
403 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
413 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
3k 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
176 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" ...
1
vote
5answers
425 views

Is it plausible to use a filesystem-based configuration format rather than an INI file?

After having had endless issues with INI-style configuration files and parsing them correctly (let along getting binary data right), a crazy idea crossed my mind recently: What if an INI file like # ...
7
votes
3answers
2k views

Should I use a config file or database for storing business rules?

I have recently been reading The Pragmatic Programmer which states that: Details mess up our pristine code—especially if they change frequently. Every time we have to go in and change the code to ...
1
vote
1answer
67 views

Grouping classes by subject or dependencies?

Our project consists of user application and server application. The server application prepares data files that the user application consumes. Because the data is huge, it is stored in custom format. ...
1
vote
1answer
68 views

How to sell logistical procedures that require less time to perform but more finesse?

I am working with a group where part of the responsibilities is managing a certain set of configuration files which, of course, have the same skeleton/structure across different environments but ...
1
vote
2answers
138 views

Is it appropriate to run a complex enterprise-system configuration and migration project in a similar way to a Scrum development project?

I'm just starting out on the implementation of a large enterprise-wide system, which has complex requirements and many stakeholders. The company has been through high-level evaluation and tender ...
6
votes
7answers
897 views

Is using something other than XML advisable for my configuration file?

I have a small tool I'm designing which would require a configuration file of some sort. The configuration file in my case is really more of a database, but it needs to be lightweight, and if needed ...
11
votes
5answers
4k views

Configuration data: single-row table vs. name-value-pair table

Let's say you write an application that can be configured by the user. For storing this "configuration data" into a database, two patterns are commonly used. The single-row table CompanyName | ...
3
votes
2answers
419 views

Where Should I Put Configuration Files?

I'm creating a project that I want to be able to distribute across platforms. I'm writing in Java and AWT which already gives me a pretty large range of devices, but I'm mostly interested in Windows ...
8
votes
3answers
2k views

User Configuration of a Shell Script. Best practices?

I am writing a shell script with a few variables that should be configured by the user. There will be an installer for downloading and configuring the script, possibly by asking a series of question. ...
4
votes
2answers
663 views

Web services and business rules engines

We have a web service that takes in input different types of messages. The function of the webservice is to merely write in a database the content of the messages. There is about one table (with ...
3
votes
1answer
68 views

Designing configuration for subobjects

I have the following situation: I have a class (let's call it Main) encapsulating a complex process. This class in turn orchestrates a sequence of subalgorithms (AlgoA, AlgoB), each one represented by ...
1
vote
3answers
468 views

Just getting started in Spring and my preference is XML config over annotations. Correct or not?

After having read through some of the Spring docs my inclination is towards using a XML config file rather than annotations on the classes themselves. My reasoning is that by doing so you avoid tying ...
2
votes
2answers
211 views

Should program behavior be modified using a config file or environmental variables?

I'm referring to *nix command line applications primarily, where you want to permanently modify the behavior from defaults. Environmental variables are easily understood and implemented, usually ...
6
votes
7answers
196 views

How to log configuration or code behaviour changes in non-disruptive way [closed]

We've probably all been in the situation where you'd like to alert your team members to some change ("I changed X, so now it's running every hour instead of every day"). But the change is non-urgent, ...
1
vote
2answers
275 views

How can I manage changes between a local config file and a remote config file in a mobile application?

I have an application with a configuration file that is stored in the application bundle. This config file stores the names of images on a remote server. Whenever the application is started, I ...
7
votes
4answers
1k views

Why don't public web applications use ini files for configuration

Almost every public CMS out there uses a .php configuration file for the database settings and so on. For example WordPress automatically creates a .php config file when you install it. Why don't ...
3
votes
2answers
250 views

In the context of semantic versioning, does a change in the default configuration warrant a new major version?

My module is enabled by default (i.e. when you add the module). There's also a configuration you can optionally use, which supports an enabled="true|false" setting. This way the module can be disabled ...
8
votes
9answers
2k views

Should I pass an object into a constructor, or instantiate in class?

Consider these two examples: Passing an object to a constructor class ExampleA { private $config; public function __construct($config) { $this->config = $config; } } $config = new ...
2
votes
4answers
244 views

What is the “architecture” that provides functionality to application-level URI interfaces, like chrome:// and Firefox's about:config, etc?

According to Wikipedia, about is an internal URI scheme (also known as a "URL scheme" or, erroneously, "protocol") in various web browsers to display certain built-in functions. It is not an ...
2
votes
3answers
218 views

File system layout for multiple build targets

I am seeking some ideas for how to build and install software with some parameters. These including target OS, target platform CPU details, debugging variant, etc. Some parts of the install are ...
9
votes
6answers
1k views

When to use Constants vs. Config Files to maintain Configuration

I often fight with myself on whether to put certain keys in my web.config or in a Constants.cs class or something like this. For example if I wanted to store application specific keys for whatever ...
1
vote
2answers
176 views

Suggestion for setting web application parameters

I'm creating a web application on GWT. I'm using MVP pattern with activities and places. I have a xml config file containing some parameters to be used by the application. Content of this xml file is ...