Trevor Burnham

Sure, it works in practice…

Entries from April 30th, 2010

Reading on the iPad

April 30th, 2010 2 Comments

iPad

I got my iPad in the mail today. Like so many other hapless nerds, I ordered it without any clear con­cep­tion of what I’m going to use it for. I already have an iPhone and a MacBook; where does this thing fit in? At the same time, I get the sense that I’ll be inevitably devel­op­ing software (or at least webapps) for the thing in the not-​​too-​​distant future, so I might as well get used to it now.

My first reaction was: Wow, this thing’s fast. Appli­ca­tion switch­ing is nearly instan­ta­neous, and web browsing is as smooth as on any computer. I’m crossing my fingers that the next iPhone will offer a similar level of zippiness.

Second reaction: Typing is a bitch. Worse than on the iPhone, even. Slow and uncom­fort­able. Your thumbs can’t reach the center of the screen; this is a weird design flaw, since it makes it vir­tu­ally impos­si­ble to type on the tablet unless it’s on some kind of surface. What the iPad really needs is a split keyboard. That goes for both land­scape and portrait mode.

But those things aren’t so impor­tant. The really impor­tant thing is: Can I read com­fort­ably on it? The answer is, thank­fully, yes. In my highly sci­en­tific tests (reading a couple of chapters of Wolf Hall in bed), the 1024x768 screen has just enough DPI for smooth reading. (I found that the Cochin font worked best in iBooks, though the default Palatino is nice as well.) Text is way sharper on my laptop screen, but my laptop screen can’t be detached from the rest of the device and held still over my head, now can it? I’d always assumed, like many folks, that extended reading on a computer is uncom­fort­able because the screen is backlit. Let me tell you, I’ve used a Kindle and I’ve used an iPad, and the two seem to bejust about equally easy on the eyes. Print still reigns supreme—high DPI, low weight (hard­cov­ers excluded)—but the iPad comes in a close second, and the expe­ri­ence is only going to get better in the next few years. E-​​ink is doomed.

The iPad has other uses that have gotten a lot of press: You can chal­lenge your iPhone-​​wielding friends to Scrabble! Fight zombies with the kids! Enrage your cat! But reading is its killer app. And while iBooks, the Kindle app, and the various PDF readers are slick, the bulk of that reading is going to take place on the web.

Remember how cool it was when the iPhone brought the web to your pocket? Well, the iPad is bringing the web to your bed, sofa, or wherever else you like to settle in cozily. I’ve been reading the web version of Pro Git, and it’s fan­tas­tic. Reading a long, tech­ni­cal book on a computer is a pain, even with a crisp PDF on a top-​​of-​​the-​​line display. The hype is right: The iPad will change the way we consume content on the web. My pre­dic­tion is that long-​​form content on the web is going to take off. The iPad might just be the rare piece of sexy tech­nol­ogy that actually length­ens our col­lec­tive atten­tion spans.

[P.S. I feel some oblig­a­tion to weigh in on the Flash debate: I really wish the iPad sup­ported Flash. It’s an idle wish at this point—Apple’s made up its mind—but it’s not the right choice for their customers.]

Tags:    

Refactoring: Part I

April 30th, 2010 Comments Off

Good news, non-​​hackers! This blog will trouble you with dull, code-​​filled posts no longer. Instead, I’ll be posting those over at my new pro­gram­ming blog, Iter​a​tive​.ly. If you’re into that sort of thing, you can sub­scribe via RSS or follow @iteratively on Twitter.

From now on, this blog’s focus is going to be more personal. More abstract thoughts unre­lated to pro­gram­ming will be piped to a third blog, set to debut next week.

Tags:

Haml 3 (beta) on Rails 3 (beta)

April 22nd, 2010 Comments Off

[Note: This post will baffle my usual readers. I intend to bifur­cate (tri­fur­cate?) my blog into multiple blogs in the near future: one for development-​​related stuff, another for startup-​​related stuff, and another for personal stuff. Until then, I feel that I have a respon­si­bil­ity to help those Googling for solu­tions to the exact same problems that have been befud­dling me in my life as a pro­gram­mer; this post is entirely for that purpose.]

I love Sass, the stylesheet-​​generating cousin of Haml. It’s so much syn­tac­ti­cally sweeter than CSS, it lets you define vari­ables and mixins like this handy border-​​radius shortcut, and it works seam­lessly in Rails. And Sass 3 is the best version yet, for a number of reasons. Mean­while, if you’re creating a new Rails project, the Creator Himself has pro­claimed that you should be doing it with Rails 3.

But right now, the instal­la­tion instruc­tions for this lethal com­bi­na­tion don’t exactly parse. So here’s what you need to do:

  1. Install the latest Rails (instruc­tions here)
  2. Install the latest Haml/​Sass dis­tri­b­u­tion: gem install haml --pre. (If you get an error, try updating RubyGems: gem update --system.)
  3. Run haml -v and note the version number. Mine is 3.0.0.beta.3 (delight­fully code-​​named “Classy Cassidy.”)
  4. Create a Rails project, e.g. with rails ~/MyProject
  5. Open up Gemfile in the project root and add the line gem 'haml', '3.0.0.beta.3', sub­sti­tut­ing whatever the version number was in step 3.

And that’s it! Running haml --rails ~/MyProject appears to be harmless but unnec­es­sary. If I’m wrong about that, someone please let me know.

Related: If you want to get Ruby 1.9 installed on your Mac, I strongly urge you to use Homebrew. If you’re curious about how to set Rubygems so that you don’t have to sudo it, follow the instruc­tions at this page under the heading “Fixing Rubygems.

Tags:  

PG on Identity Politics

April 22nd, 2010 Comments Off

His con­clud­ing paragraph:

Most people reading this will already be fairly tolerant. But there is a step beyond thinking of yourself as x but tol­er­at­ing y: not even to consider yourself an x. The more labels you have for yourself, the dumber they make you.

From “Keep Your Identity Small.” Paul Graham deserves a broader audience than the startup tribe that fre­quents his site. It’s a pity that no one reads “essays” anymore.

Tags:  

PG on Grad School

April 11th, 2010 1 Comment

The danger with grad school is that you don’t see the scary part upfront. PhD programs start out as college part 2, with several years of classes. So by the time you face the horror of writing a dis­ser­ta­tion, you’re already several years in. If you quit now, you’ll be a grad-​​school dropout, and you probably won’t like that idea. When Robert got kicked out of grad school for writing the Internet worm of 1988, I envied him enor­mously for finding a way out without the stigma of failure.

On the whole, grad school is probably better than most alter­na­tives. You meet a lot of smart people, and your glum pro­cras­ti­na­tion will at least be a powerful common bond. And of course you have a PhD at the end. I forgot about that. I suppose that’s worth something.

From Paul Graham’s essay “Under­grad­u­a­tion.” The whole thing is worth reading.

Tags: