Recently, Joi posted about blogger codes, and it reminded me (when he linked to Jason's decoder and not mine **wink**) that a long time ago, I'd written a JavaScript to automagically decode peoples' blog codes for them.
Well, last night I was talking to Manager Dave about how I met Jason, and I was telling him about how, by total coincidence, Jason and I both wrote our decoders on or around the same night, and both sent an email to the leatheregg guy, thus both of us have links at the top of the main page. I sent him an email a day or so later, and we've just kinda kept in touch ever since.
Anyway, I mentioned that it's ironic that I wrote mine in JavaScript, and Jason wrote his in PHP, which has since become my own language of choice. Following that was a short conversation about how silly it was to have done it in JavaScript to begin with. (Or, as Dave put it, "Did you do it that way because that was the only screwdriver you had at the time?") Well... yeah, kind of. I had to do it that way, because JavaScript and Java were the only languages I really knew, and I certainly wasn't masochistic enough to write an applet. At the end of the conversation, we agreed that if I'd've written it in PHP, I could have done it in ~15-20 lines of code (outside of the lookup table for all the text).
Tonight, utilizing ideas from Dave during that discussion, I did re-write it in PHP, and it turned out to be seven lines. Who knew. (For the curious: JavaScript/PHP).
[ home - archives - quoteboard - blogger decoder - wishlist ]
This work is licensed under a
Creative Commons License.