development

previous lives

This is a scattered post. I apologize.

In the job I had before this one, I was doing .NET programming.

Now, don’t cringe immediately. I did it for several reasons; my mortgage being a big one, of course. I did it because I wanted to see what it was all about. I was curious about the state of the art for Windows programming tools, and also because I wanted to see what Microsoft had done with C#, since I had never really had the reason or inclination to look at it.

My conclusion? C# is a lot like Java, but it is very much like a Microsoft-designed Java. There was a reason for everything they did, and I think a lot of it actually does improve on the Java stuff, but much of it was just different. One of the things that I used in C# that was new to me was Properties — variables that call the right methods for getting and setting values.

My initial reaction to Properties was that I didn’t like the hidden code. It wasn’t always clear to me that doing an assignment was actually calling code — which is one of my complaints with C++ ad operator overloading in general — it is, at times, hard to see from just looking at the code what is being called.

That being said, and at the risk of repeating myself, I find myself falling in love with Objective-C (ObjC). ObjC cannot be described as a clean language, its basic nature is that it exists as a hybrid language. In addition, the 2.0 version of ObjC includes the same Properties that I have issues with in C#. Yet they don’t annoy me as much as they did in C#, mainly because in the most common case, they are used to make instance variables behave in a safer fashion.

Tech Digression: The most common use of Properties within ObjC is to make your instance variables thread-safe and memory-management friendly. Most of the time you are going to declare your property and let the system write the code for you. My issue with C# was that much of the time, interesting code with side effects was being shoved into the getters and setters. In the vast majority of the cases in ObjC, a property is used to just safely access an instance variable. Yeah, there could be some complex stuff going on, but it is usually centered around access serialization, and making sure that the right thing is done memory-management-wise.

ObjC can be intimidating, with all of the #import, @implementation, [object method], and other stuff that doesn’t look like C… It’s definitely something built by a mad computer scientist.

But I’m falling deeply in love with it. I’m not sure why.

development
general

Comments (0)

Permalink

Compare and Contrast.

So Nokia buys Symbian.

Compare and Contrast:

Windows Mobile, and the other flavors of Windows that run on mobile phones, descends from Windows CE, an operating system designed for PDAs and palm top devices.

Symbian, used by Nokia for there smart phones and other devices, descends from the OS used in Psion devices, which were PDAs and palm top devices.

When Apple chose an operating system to run on their iPhone, they chose OS X, an operating system designed for general computers.

Look at the differences in approach. Look at the hardware out there today — Gruber did a quick comparison and came to the conclusion that the hardware in an iPhone is roughly equivalent to the hardware in a circa 2000 PowerBook, which ran — wait for it — OS X.

So why not choose a software basis that gives you a headstart? Sure, you have to do some things differently, but it’s not like we’re back to the early ’80’s, counting instruction cycles to make sure we’re going to be fast enough to fit our code into the vertical blanking interrupt. Small system programming, these days, is roughly equivalent to big system programming, circa 2000.

I know which approach I like better.

apple
development
general
tech

Comments (0)

Permalink

WWDC08

If you follow my twitter stream at all, you know I went to WWDC this year.

I’ve been wanting to go for years. I find it hard to control the enthusiasm I had for the experience.

It was a good challenge to get through. I was around very smart people. I was at a technical conference that actually gave me more interesting technical information than I could take in. I swear, stuff was bouncing off of my brain during the Friday sessions. I knew the stuff was important, I knew the whys and the hows, but the what’s just ricocheted right off of my grey matter.

One of the things that I really want to write about is that how I feel like I’m finally coming back home to Smalltalk. One by one the things I miss are being incorporated into Objective-C. ObjC 2.0 was cool, [redacted] is going to be better. It is unfortunate that the details that make me happy about [redacted] are covered by NDA.

Grand Central Dispatch and OpenCL are mentioned on Apple’s public pages, so I can actually mention them. Grand Central Dispatch is tied directly to the technology I tried to allude to in the previous paragraph, so perhaps soon someone else will mention it and I can stop being annoyingly coy about it.

I still use languages like Python and Ruby, but I’m finding myself drawn more to coding directly in ObjC and Cocoa, or perhaps Nu. I’m in a period of my programming life that I want a language that can go really high level and really low level, sometimes in the space of the same method.

The best thing about WWDC08? It brought me back into a technical area that is new and vibrant, one that inspires real excitement for me. It’s almost like I’ve had to spend years trying to downplay the fact that deep down inside, I just prefer the way that Apple does things, and I have for a very long time.

It feels very good to come home.

development
general
iphone
life

Comments (0)

Permalink

Agent Craig

It’s been a while coming, but it’s here. The company that I went to work for has shipped a product that I think has great potential.

We call it Agent Craig, and we’ve put it on sale prior to WWDC.

Agent Craig is what we call a “Search Aggregator.” It scours th web, looking in places that people like to advertise things, and looks for items you are interested in. Right now it searches Craig’s List (hence the name), and eBay. We made it extendable, so it’s easy to add plugins to search other places, and we’re busy adding Freecycle and the ability to search patents.

I am excited to be associated with this product. Give it a look.

development
work

Comments (0)

Permalink

My New Development Workstation

Our Founder

In an effort to “Keep it Real,” I will now be doing all of my development on our newest Macintosh.

I’ve almost got the iPhone SDK running on it. Cross your fingers.

apple
development
work

Comments (0)

Permalink