Murphy Bytes

March 24, 2009

Configuration Files

Filed under: Rants — John Murphy @ 3:09 pm

I hate them. I am especially annoyed when a library that exposes some sort of API requires it’s own configuration file. So, not only do you have a configuration file for your application, you also have to have another for this stupid library you integrated into your application. Wouldn’t it be nicer for the API to expose some methods, structures or something so that the data needed by the api could be set from the consuming application? That way, if you insisted in persisting these settings in a file you could do so in the application config file, giving you a single config file instead of two. I suppose one might make an exception and have a separate config file for a something that is so pervasive that is canonical like the log4XX logging libraries.

1 Comment »

  1. i mentioned to you many times, use of an embedded interpreted language will do miracle in configuration and it is also way smarter than xml.
    this allows you to have variables that are dependent on somehting that can be programmed for, like ip address of an interface, grab stuff from a database. all the sudden configuration of distributed applications can be done programmatically. Next read about HTML::Mason a perl package that can generate documets for you, like stupid config files. Even use Ruby on Rails, to generate config files instead of html pages. Hey, hey, hey time to play. :-)

    Comment by peterv — March 24, 2009 @ 9:40 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress