Truth.
-

Chiron Codex: helping software engineers become centaurs. -

-
Blog
-
Podcast
-
Consulting
http://queue.acm.org/detail.cfm?id=2687011
There’s no such thing as a General-purpose processor, and belief in such a device is harmful.
Joe Armstrong thinks we don’t need modules in software. Instead, all functions should have unique names and be published in a global database.
Cobol now has function pointers :O
Apple noticed there are programmers outside the valley
If my summary sounds cynical, it’s because I’m cynical of the old Apple way where they only hired engineers who wanted to relocate within the shadow of (whatever the big thing in SV is: Stanford now, but probably HP when Apple was younger). I’m excited that they’ll get to hire from a broader range of applicants as they stagger, eyes blinking, into the wide world outside Cupertino.
Sometimes in describing a concept X in one domain, someone will ask “oh, is that like X’?” where X’ is the same concept or a very similar one, expressed in a different domain.
The quick answer is “Yes”, but that permits a range of interpretations from “X and X’ are the same things in different contexts” to “this domain that’s new to me can be thought of by analogy to the thing I already know. For example, what I know as X’ exists, except that they call it X”.
One long answer is “There exists an idea called Meta-X. Both of these domains contain expressions of this idea, but one represents it as X and the other as X'”. But now, possible interpretations include “Meta-X is pure and both X and X’ are tainted”, “Meta-X is some fundamental proposition about the universe”, “Meta-X is some meaningless fiction invented by Graham to sound profound”, “Meta-X is some attempt to conceptually combine two different real things”.
So neither answer is “correct”, and you can’t present information in a way independent of those trying to make use of it.
The next phase in technological convergence will be harder than the last, because it can’t be solved with technology. Last time the devices converged, some phone makers just needed to buy a photoelectric detector, a lens, and licenses for some MP3 patents.
But how can the various tab-sized computers I carry – my bank cards, SIMs, passport, building door card, transport cards, office ID – be integrated, when they mean different things to different people? Technologically, it’s really bad to keep them separate because you can’t just hold a bag of RFID tokens up to a reader and expect the right thing to happen. Socially, it’s really bad to converge them; I can’t imagine my bank, employer, train conductor and government all agreeing to the same terms on identifying me, nor would one company be an acceptable clearing house for all of that so rather than N distinct tokens we’d end up with N tokens you can use Anywhere™*.
I’ve made some changes around here, and they impact how both you and I interact with this blog.
Firstly, I added asides, which are untitled posts in the main stream. I think of them as something like Daring Fireball’s Linked List. I used to tweet links that interest me, but once I’ve put a link in a tweet I haven’t got much space to explain why it was interesting. Sometimes I post links to comedic articles and I don’t want to discuss their accuracy, for example. Bringing that sort of post over here removes an arbitrary length constraint, while still letting me distinguish between full posts and, well, asides.
The previous post is an aside. It’s untitled, and short, but otherwise looks the same as any other post. I might change that.
The second change is that I’ve turned comments (back) on, though only for posts published today or later. The arguments for turning comments off are well thought out and well-meaning, but don’t work out too well in practice.
In addition, having comments switched off dilutes the experience for those people who did want to see what people were talking about. There’d be some chat over on twitter (some of which mentions me, some of which doesn’t), and some over on the blog’s Facebook page. Then people will mention the posts on their favourite forums like Reddit, and a different conversation would happen over there. None of that will stop with comments on, and I wouldn’t want to stop it. Having comments here should guide people, without forcing them, to comment where everyone can see them.
Of course just because it’s possible to submit a comment here doesn’t mean I’ll publish it. I rule with an iron fist, and anything that I don’t think contributes won’t actually get allowed through.
Is Social Psychology Biased Against Republicans?
Pretty interesting, and an often unmentioned aspect of diversity (probably because political leaning is supposed to be a secret in democratic countries, if not because it’s usually acceptable to display ingroup/outgroup bias politically). But it’s very relevant in the social sciences, especially if it means that particular political views are more likely to be treated favourably or argued for by researchers.
On receiving a message with a parameter, sometimes an object just reverses the sense of what just happened and sends another message to the parameter object with itself as the parameter of this message. That’s a pretty hard sentence to read, but I couldn’t work out how to rewrite it, so here’s an example. A Smalltalk class might have a method like this:
Object>>#printOn:
printOn:aStream
"Append to the argument, aStream, a sequence of characters
that describes the receiver."
|description|
description := self description.
aStream nextPutAll:description.
I would do this as a matter of design: I can make it clear that I’m messaging one object and using another simply in a supporting role. It takes this:
foo doTheThing.
aStream nextPutAll:foo description.
and turns it into this:
foo doTheThing;
printOn:aStream.
In Objective-C, this pattern has an additional use due to the nil sink for messages. Imagine formatting a string and appending the result to another string, but if the initial string is nil then you don’t want to add anything. It might look like this:
if (emailText) {
NSString *quotedString = [NSString stringWithFormat:@"> %@", emailText];
[output appendString:quotedString];
}
because I don’t want the phrase > (null) to appear in the output. But, with a bit of category magic, we can avoid the condition and make it clear that the email text is the important object.
[[emailText quote] appendTo:output];
I haven’t just hidden the conditional; it never appears. If emailText is nil then all the other messages will just get dropped, so neither quote nor appendTo: need to test for nil.
Sometimes, the messages are just flowing the wrong way, and clarity can be gained by reversing the polarity.
[Update: oops! I had read Kent Beck’s “Smalltalk Best Practice Patterns”, and apparently absorbed his Reversing Method pattern. This post is basically a discussion of that pattern, and credit should go to Kent for originally creating it. My addition is the Objective-C specific nil sink extension. Sorry, Kent.]