Muppet Labs closing for now2009-09-07 15:03, written by Robert Klemme
It is time to look back at the Muppet Laboratory series. Here’s my list of noteworthy items — I will keep it rather short as interest in the series seems to have dwindled anyway:
- The first version with LRU caching integrated was way too complex and had ridiculous performance. Continuous checking of interactions against the search criteria made the code complex and slow. In this case the premature optimization was worse than ineffective.
- I am test lazy (I confess) but apparently this works remarkably well. Note, that this does not mean I don’t test. But for my scripts I usually do not write unit tests or RSpecs. (file under: Ruby Bad Practices — fortunately the acronym is the same)
- Overall the LRU approach works remarkably well at limiting memory usage while processing huge amounts of input data so I would say the plan succeeded mostly.
- I found the idea to use block passed to a method as a class body especially interesting. I will probably recycle this for other cases where I want to provide a framework (including command line parsing) which needs to be filled with user code.
- Summertime is a bad time for a blog series — author and readers are occupied with other things, mainly enjoying sunny outsides.
What did you consider most valuable for you? What would you have done differently (software as well as blog series wise)? I would be curious to learn what your thoughts are.
The next article will be about the versatility of
Struct. This is another swiss army knife of the lazy Ruby coder.