Configuration Files

Ruby on Rails might favor convention over configuration, but every piece of enterprise-class software I’ve seen has scads of configuration files containing hostnames, port numbers, filesystem locations, ID numbers, magic keys, usernames, passwords, and lottery numbers. (I made that last one up.) Get any of these properties wrong, and the system is broken. Even if the system seems to work, it could be broken without anyone knowing it!

Configuration files are often obscurely named, buried deep in the directory structure of the code base, or just plain inscrutable. When a property is named hostname, is that “my hostname,” “the name of the authorized caller,” or “the host I call during the autumnal solstice?” ...

Get Release It! now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.