Tesugen

Apple Objective-C APIs

Malte has an excellent example of why Apple should “wrap” their C APIs in Objective-C. (I have written about this before.) His example shows how complexity can be hidden in classes. With Objective-C you can give classes multiple interfaces using categories, so that there is a basic interface for simple things, and additional interfaces when the simple things aren’t enough.

This rhymes well with the “Selfish Class” paper by Foote and Yoder I wrote about some weeks ago, which state that reusable frameworks should “work out of the box” and exhibit a “gentle learning curve” by revealing complexity as it is needed.

The above was posted to my personal weblog on May 21, 2002. My name is Peter Lindberg and I am a thirtysomething software developer and dad living in Stockholm, Sweden. Here, you’ll find posts in English and Swedish about whatever happens to interest me for the moment.

Posted around the same time:

The seven most recent posts:

  1. Tesugen Replaced (October 7)
  2. My Year of MacBook Troubles (May 16)
  3. Tesugen Turns Five (March 21)
  4. Gustaf Nordenskiöld om keramik kontra kläddesign (December 10, 2006)
  5. Se till att ha två buffertar för oförutsedda utgifter (October 30, 2006)
  6. Bra tips för den som vill börja fondspara (October 7, 2006)
  7. Light-Hearted Parenting Tips (September 16, 2006)
Bloggtoppen.se