Extreme code reuse
I am, as always, playing with stuff. And I was faced with a problem I must have solved a dozen times before:
Given a list of items with obvious hierarchical names (say, a list of folders), turn it into a reasonable data structure.
Since there are not all that many names, there is no need to do it on-demand, or anything like that.
I must confess I suck at this kind of things because I hve to actually think them through. I don't know how to do this kind of things.
Mind you, I have done it before, but I said, hey, maybe google can help me...
And yeah! Python code from 1994 that does exactly what I needed. I had to touch a single line ( string.splitfields(a,'.') to a.split('/') ) and it worked.
The Internet never forgets!