This is just a quick update. My last refactoring on Brainmess was to extract out the tape class. While reviewing that code today, I noticed some artifacts left over from the refactoring process. These were cleaned up in commit 836a96
It occurred to me that since the links I’ve provided so far include a NSFW word, I should take the time to describe the Brainmess language on my blog so readers need not click on those links. This description is obviously not going to be completely original as I’ve stolen most of it from Mark Chu-Carroll’s blog and Wikipedia.
My favorite bit (as I can relate to this at my current employer and their regard for open source):
One of my favorite bits of wisdom Scott Guthrie taught me is that the lawyers’ job is to protect the company and reduce risk. If lawyers had their way, we wouldn’t do anything because that’s the safest choice.
Years ago (2006) I wrote a compiler for TI BASIC, the dialect of BASIC that I learned on my TI 99/4A (many many years earlier). This is an “ancient” computer language and one of the first that I learned. (I had a few years of experience with Apple Basic on Apple IIe before getting a TI.)
Link Github Commit to Pivotal Tracker Story
I’m using Github and Pivotal Tracker. You can easily configure Github to notify Pivotal Tracker of commits. Once you have done that, then whenever you want to commit something that is related to a story you simply embed the tracker story id in your commit message. Something like:
> git commit -m "[#87654321] Finish the new story"
Last time I worked on extracting out the methods related to fetching instructions and jump instructions into a
Program class. I’m going to use a similar pattern today to extract out methods related to the tape. Currently the tape is implemented as an array of integers and a tape counter. I want to replace all of that with a
Today, I’ll start to refactor the Brainmess program. In the first post I gave an “all-in-one” solution. Next I added some automated tests to give me some confidence that I don’t break anything during the process. The last time that I spoke about Brainmess, I just explained my implementation.
Rob Schmitz reporting for Marketplace catches Mike Daisey in flat out lies about what he saw during his visit to China. Daisey claims it was theater not journalism. Seems he should have thought of that before going on dozens of television programs to lie about what he saw. Listen to the Marketplace piece here.
This revelation is causing lots of media outlets to have to issue retractions. Among them is one of my favorite programs, This American Life. Ira apologizes on the TAL blog. I’ve been a contributor and listener to TAL for years and I won’t stop because of this. Like others, I found the story to not quite fit with what I had read and heard about Apple’s suppliers; but I can understand that they made a mistake.
Gruber is all over this story with 7 posts at last count including this one.