You are currently looking at an older section of the wincent.dev website.
Please check the new version of the site at https://wincent.dev/ for updated content.

wincent Wincent Colaiuta's weblog

« October 2006 | Index | December 2006 »

November 29, 2006

HOM performance test results

The promised test results. Totally unscientific and no substitute for proper testing and profiling in a real-world application, but they do give some orientative information. These results are for a completely unoptimized implementation; I won't be optimizing until (and if)...

Read full article

More Development articles , More HOM articles

Posted by wincent at 5:36 PM

HOM improvements

One of the things which tricked me when I first started with HOM (an entire 6 days ago) was that I would see examples like this: [[collection select] hasPrefix:@"foo"]; And assumed that I could write things like: [[[collection select] stringValue]...

Read full article

More Development articles , More HOM articles

Posted by wincent at 2:57 PM

Google gems

The Google Mac Weblog continues to be an occasional source of some very interesting gems. This time it's about module initializers, something which I didn't know existed. A handy replacement for the load method in categories with a better-defined execution...

Read full article

More Development articles

Posted by wincent at 8:57 AM

November 28, 2006

A moment's reflection

Q: Why write yet another HOM implementation when there are already so many out there? A: Because it's not the sort of code I would want to use without understanding exactly how it worked; and the best way of fully...

Read full article

More HOM articles

Posted by wincent at 4:12 PM

The BOOL return problem

The "select" HOM is one of the most frequently used patterns in any demonstration of HOM yet ironically it is also the most difficult to implement due to a quirk in the way the compiler and runtime work. Given code...

Read full article

More Development articles , More HOM articles

Posted by wincent at 11:04 AM

November 27, 2006

HOM update

A couple of days ago I wrote about my first venture into HOM (Higher Order Messaging) in the form of a ifResponds selector. I included some results that showed that the HOM implementation was about 100 times slower than the...

Read full article

More Development articles , More HOM articles

Posted by wincent at 1:08 PM

November 26, 2006

WOTest improvements

I'm very happy with some improvements that I checked in to WOTest last night and which improve the readability and usefulness of test results....

Read full article

More Development articles

Posted by wincent at 3:38 PM

November 24, 2006

More thoughts on HOM

Back in August I wrote the following about HOM (Higher Order Messaging): It reads like natural language but behind the scenes there's an invisible trampoline object that does the work. The first message returns this invisible object with which you...

Read full article

More Development articles , More HOM articles

Posted by wincent at 1:24 PM

November 23, 2006

Deleting code

Sometimes deleting code is the best kind of enhancement you can make....

Read full article

More Development articles

Posted by wincent at 11:58 AM

November 20, 2006

Site improvements

Over the last month I've spent a few hours making minor improvements to the navigability of the site. Visitors should now find it a little bit easier to move around the site. These are minor polish details, the kind of...

Read full article

More Miscellaneous articles

Posted by wincent at 2:43 PM

November 17, 2006

Multi-file (2+ files) Xcode file templates

I'm very happy to have discovered that you can set up Xcode file templates that include more than two files. I've just used this to make two new templates, "Objective-C class with tests" and "Objective-C category with tests", which create...

Read full article

More Development articles

Posted by wincent at 7:11 PM

November 15, 2006

Son, don't repeat the same mistakes I made

There are some things that I wish someone had told me when I got started programming Cocoa four years ago. There's a lot to learn, of course, so even if they had told me (and let's be honest, they probably...

Read full article

More Development articles

Posted by wincent at 4:48 PM

San Silvestre website: a study in incompatibility and insecurity

For the past two years I've participated in the San Silvestre popular running race through Madrid on New Years Eve. This will be my third year in the 10Km race. As has been the case in previous years, this year's...

Read full article

More Opinion articles

Posted by wincent at 3:32 PM

November 9, 2006

Fighting GoDaddy

The trick I previously described for working around GoDaddy's galling bait-and-switch scam on private registrations no longer works. I tried to remove privacy on an expiring domain and then renew it, adding private registration, and GoDaddy's interface allows me to...

Read full article

More Net articles

Posted by wincent at 12:52 PM

November 4, 2006

Porting to Objective-C 2.0

I am pleasantly suprised to report that it only took me 2 days to get WOTest ported to Objective-C 2.0, and in reality not really 2 whole days because I've had a lot of other tasks and chores to do...

Read full article

More Development articles

Posted by wincent at 5:35 PM