Archive for September 6, 2004

Monday, September 6, 2004 [Tweets] [Favorites]

Gmail Marketing

John C. Welch:

Then you play with it, and just before the reality of It’s just Webmail sets in, you get six invites. Why six? I don't know, maybe seven is a magical GQQ Posse number.

OCMock

OCMock is a new framework for testing Objective-C code using mock objects. Its trampoline-based interface is extremely simple:

Expectations
A trampoline records the message to expect, and the mock later checks to see whether your test code caused the same message to be sent to it. (It doesn’t seem to check the order or number of the messages, and unfortunately messages with non-object arguments don’t seem to be supported.)
Stubs
Using two trampolines, you can add a stub method to your mock object and set its return value.

From the user’s perspective, OCMock is not really any better than EasyMock (for Java), and it has considerably fewer features. However, it does fill a need in Objective-C, and it is a good example of what you can do in that language with relatively few lines of code.

See also: jMock (Java), pMock (Python).

IMP Caching Deluxe

Nat! shows how to use manual IMP caching to quickly send the same messages to heterogeneous objects in an array. He demonstrates this technique by implementing a faster autorelease pool class.

The Age of the Essay

Paul Graham:

Certainly schools should teach students how to write. But due to a series of historical accidents the teaching of writing has gotten mixed together with the study of literature. And so all over the country students are writing not about how a baseball team with a small budget might compete with the Yankees, or the role of color in fashion, or what constitutes a good dessert, but about symbolism in Dickens.

New Hitchhiker’s Guide Radio Series

Kai von Fintel:

The BBC is producing a new series of radio shows of the Hitchhiker's Guide to the Galaxy with most of the familiar actors