News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DZone.com:
Configuration is code
November 20, 2013 @ 10:54:12

In this recent post to DZone.com Giorgio Sironi talks about how, despite it commonly not being intended this way, configuration files usually end up being "code".

You start out with a simple .ini file [and] after a while, you customize its values by deployment environment. [You] then substitute values in it, to remove duplication or substitute constants, for that matter. Finally, you start supporting dynamic values, because this gives you more flexibility. The thesis of this article is that an efficient solution for supporting the more complex use cases of configuration can be found, without piling up proprietary or open source libraries to parse more and more complex configuration files. This solution, namely, is to use a more powerful language: your own dynamic programming language.

He looks at the "back in the day" configuration types that Java frameworks used - mostly XML files with a tight coupling to the servlet using it. He steps back a bit and looks at what he calls the "properties of code" and relates it to this dynamic language for configuration he's been talking about.

0 comments voice your opinion now!
configuration dynamic language properties

Link: http://css.dzone.com/articles/configuration-code

blog comments powered by Disqus

Similar Posts

ThinkPHP Blog: Creating press-ready PDF documents on the fly including individual barcodes

Rich Zygler's Blog: Is Microsoft buying Facebook a good thing for PHP?

PHP.net: PHP 5.4.16 and PHP 5.3.26 released!

eWeek: Microsoft Hosts Project to Run PHP on .Net

PHP.net: PHP 5.4.9 and PHP 5.3.19 released!


Community Events





Don't see your event here?
Let us know!


application interview release podcast language threedevsandamaybe api library list developer series community install bugfix configure symfony laravel wordpress code introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework