A write-up of a tricky aspect of saving Mechanize agent cookies.
The hacker sits down. It’s been a long time since he worked on this project, so he figures he should probably make sure the tests are passing first.
This self-documentation is a great gift for other developers (and your future-self). A quick look at the Data Object definition tells us what attributes are available. No need to go through those four classes where a hash that’s returned by a third-party API is transformed, filtered, reduced, deleted, symbolized keys and recursively flattened… wait, what?! […]
Towards the end of this video there’s a terrific discussion of the point at which DRYing out the code any further would just make it harder to understand. I was also amused by the quote: I have downloaded much of my brain into emacs muscle memory.