Python Make You Forget Plural

Posted: Fri, 23 September 2005 | permalink | No comments

Today, I've had two completely separate applications bite me in the arse regarding directory names not being pluralised when, at first glance, they should be. The only commonality between them is that they're both written in Python.

First, Xen, or rather the userspace management tools. The directory which stores the data for all running guest domains is /var/lib/xen/xend-db/domain.

Secondly, Zope 2.8. Where do all of the Zope instances you want to run live? /usr/lib/zope2.8/instance (or somewhere similar). Crackful.

Naturally, these are very minor points which get fixed with a quick "WTF? ls Gah!", but it's a curious thing -- like whether you name database tables for the singular or plural of the "thing" they store. (The correct answer is "who cares, as long as you're consistent"). The general consensus (from a quick, very non-scientific analysis) that there seem to be a lot of directories which contain a collection of individual, related items named in the plural form. For example:


(I kept /etc/emacs in there because I figure there's no way anything that big can be a single item. <grin>)

So, let the umpteen billion counterexamples flood in. Remember, though, that I've got all of the /usr/share/doc/*/examples directories on my side...

Post a comment

All comments are held for moderation; markdown formatting accepted.

This is a honeypot form. Do not use this form unless you want to get your IP address blacklisted. Use the second form below for comments.
Name: (required)
E-mail: (required, not published)
Website: (optional)
Name: (required)
E-mail: (required, not published)
Website: (optional)