A Plug

It’s easy to go overboard when praising Apple’s design, but they do turn their attention to some pretty neat challenges.

adapters

Continue reading

Posted in Jack Handy | Comments Off

Random Cocoa

Today, just three quick notes on iPhone development, Objective-C, and Cocoa. Briefly:

  • The iPhone has no true fixed-width font
  • NSMutableArray isn’t really anything like an array
  • NSNumber lets you wrap integers and floats as objects

Continue reading

Posted in iPhone | Comments Off

Decoration Day

Today is Memorial Day in the United States. Memorial Day is a modification of an earlier day of commemoration, Decoration Day, which was in turn created to honor those Union soldiers who died in the American Civil War.

To present some context, consider that more than 600,000 American men at arms died in the Civil War. The population of the U.S. in 1865 was around 35 million. This means that the Civil War claimed about 1.7% of the population, or 1 out of every 59 people. (1 out of every 30 men.)

Posted in Jack Handy | Comments Off

AC/DC

I was listening to AC/DC’s “Dirty Deeds Done Dirt Cheap” the other day. Fun little CD. And, you know – AC/DC: Rock and roll. Guitars and drums. Lots of songs about sex and touring. But there’s also this one track – “Ride On” – that isn’t like anything else I’ve heard them do. I quite liked it.

Those little surprises are probably the best thing about buying music by the album, instead of by the track.

Posted in Jack Handy | Comments Off

Xcode and SVN

When setting up Xcode to use Subversion (SVN) as its Source Code Management (SCM) system for a new project, I encountered a few hiccups. Nothing too major, and I’m sure that some of them were due to my unfamiliarity with Xcode, but I thought it would be worthwhile to post some notes on my experience.

Continue reading

Posted in iPhone | Comments Off

Xcode

Today, some random notes on Xcode (Apple’s IDE for Mac OS and iPhone OS): A few odds and ends I’ve noticed since starting to work with it a couple of weeks ago. (I like Xcode, but it does seem to have a quirk or two.)

Continue reading

Posted in iPhone | Comments Off

Learning a Framework

There are three basic ways to learn a new framework (or new programming language). In roughly the order you should try them, and in increasing order of usefulness, they are:

  • Reading documentation
  • Reading code
  • Writing code

Continue reading

Posted in Jack Handy | Comments Off

Uh-Oh (Objective-C)

I’ve been learning Objective-C, the native language of iPhone development. Overall it seems like a reasonable language, albeit one that’s pretty tightly integrated with Xcode. (The large number of lengthy constants used in Cocoa/Objective-C programming would make me reluctant to develop in this framework/language outside of an IDE.) However, it does seem a little … verbose. In the course of writing a small piece of test code, I was struck in particular by Objective-C’s poor string handling.

Continue reading

Posted in iPhone | Comments Off

I Hope This Isn’t True

I was reading some iPhone docs last week – specifically, the Cocoa Fundamentals Guide, and I came across this remarkable statement:

Programming becomes largely an exercise in assembling the programmatic components that Cocoa provides along with the custom objects and code that define your program’s particular logic, then fitting the whole assemblage together.

Taken literally, this would make Cocoa one of the worst frameworks in the history of software. What a developer actually wants is a framework that makes programming (almost) entirely a matter of creating the raison d’etre of his product. Such a framework should require that only a minimum of time and effort be spent creating “boilerplate” functionality.

Apple’s quote claims that Cocoa offers quite the opposite experience; programming will be largely about mucking around with the framework, and only a minority of development time will be spent creating the “program’s particular logic”. Since no framework can make it easier to build the unique parts of a program, the quote can only be true if the framework is incredibly difficult to work with.

Fortunately, it appears that the docs are wrong.

Posted in Jack Handy | Comments Off

Taxes

Looking at a receipt the other day, I noticed that the combined state and local sales tax in my area (Silicon Valley) had reached 9.25%. Even as I type that, I find it hard to believe. It’s motivated me to write a brief piece illustrating just how much money the government takes out of your pocket.

Continue reading

Posted in Jack Handy | Comments Off