January 12, 2003
-
I wanted to comment on the whole usenet/martial arts thing, but it’s 7:48 and I haven’t slept all night.
My mind has been going full bore since about 10pm. And by ‘bore,’ I mean diameter, not interest level.
The two funnest things I learned in the past few hours have been extremely geeky, but here they are, with linkage to something about them:
How to implement class interfaces separately from class heirarchy in C++ This is very easy to do in REALbasic, Java, and Objective-C, and it turns out that C++ isn’t that bad with it, either. I investigated this because I’ve been poking around the Mozilla Gecko API (I chose this link because it has a cool diagram of the Component and Service Managers interact, that looks like a diagram of a synapse), and I thought, ‘Geez, is this all to get around C++’s lack of an @interface keyword? It turns out it’s not; nsISupport is just there to be a PITA.
Cocoa’s First Repsonder abstraction is a lot like REALbasic’s EnableMenuItems event, except that any type of object can be in the response chain, as long as it advertises itself as being able to respond.
I also managed, in my sleep-deprived state, to see through space and time to the ultimate truth about existence and meaning, but it wasn’t as interesting as how to define C++ classes independent of heirarchy. Woop.
Comments (1)
that made me laugh coffee out of my nose.
Comments are closed.