Interesting Things
- Net::HTTP is slow
Recommended alternatives: Curb, httpclient, rfuzz.
Please see Steve Conover’s writeup for more details.
- Marshall Dump/Load encoding issues foiled by Base 64.
When storing to a string via marshal_dump, it can be handy to encode to Base 64 first. The same string — once marshal-loaded and Base 64 decoded — should be free of any encoding and/or escaping errors. Is there anything Base 64 can’t do?*
* the answer I am looking for here is “win a knife fight against tigers.”