Programming

Choosing a Rung on the Language Ladder

Saturday, January 31st, 2009

Every once in awhile, most programmers step back and consider what other tools are out there, and whether there’s a better place they could be. I frequently look up the language ladder at Lisp, Smalltalk, and friends, while I often actually go down the ladder to PHP. The reason for this is simple: it’s easiest to solve a problem when someone else has already done the work for you. Read more »

Fun with Pros and Cons

Thursday, September 25th, 2008

It’s pretty well-known that, “the opposite of progress is congress.” But you don’t hear so often that “the opposite of the constitution is prostitution”, or that, “if you are not a contestant, you must be a protestant.”

Like most things in English, affixes are weird. By affix, I mean a prefix or a suffix; these sometimes come in predictable opposites, as with “prepaid” and “postpaid”. But while the prefix for “prefix” is “pre-”, the prefix for “suffix” isn’t “post-”… and the postmaster’s arch-enemy isn’t the premaster. Nor can you tell, just by looking at the form of a word, whether it has an affix (though older writers often made it easier by hyphenating prefixes; e.g. to-day and to-morrow).

Now, this leads us very naturally to a deep discussion of linguistics. If you’re qualified to lead such a discussion, great; I look forward to reading it in the comments. I know just enough to be certain that a non-inflected language isn’t outflected, that you don’t find diphthongs in the lingerie department, and that you don’t wear them over your agglutination.

Which, really, is all for the better. Why labor to understand something, when you can abuse it for cheap thrills? I wrote a quick script to find matches between pro- and con- words… and to find the non-matches. The non-matches, really, are more interesting… because while the opposite of procrastinating isn’t ‘concrastinating’, it should be. Given that this sort of thing makes the language more regular, we’d actually be protorting it, rather than contorting it, so we should see this as a conblem. In fact, it’s prosiderate to convide such words.

Anyway, though… below are three tables. The first is the list of words (from the Unix ‘cracklib’ file) where the same ending forms legitimate words with both pro- and con- at the beginning (though not necessarily as prefixes modifying a root). The second and third list nonsense words made from swapping the letters ‘con’ and ‘pro’ at the beginnings of real words. And then, just for completeness, the code I wrote to generate the lists.

If you find the tables interesting reading… well, congratulations. You’re a geek.
Read more »