Rails Off The Rails

Seems like the same thing has happened with Ruby on Rails as happened with, say, Zope. Giles does a pretty good analysis. The key point is that as frameworks mature they start supporting legacy users and applications who, in turn, have different requirements and values from those looking for a quick way to build new …

Permutations with Python Generators

Here’s something neat. I wanted to experiment creating different permutations of a collection of items. (In fact I’m working on some code for laying out shapes on a surface.) Prototyping in Python to get my ideas straight I came up with this neat generator solution. def perm(xs) : if xs == [] : yield [] …