Wednesday, February 15, 2006

C is like reading a really old book

I love C. Most people don't. Its like some folks prefer the old muscle cars and others like the new jap fizzbuckets. Don't get me wrong, I want to marry Ruby but C gives me a sense of oneness with the computer - I have ones and zeros in each hand :) A rarely used feature of C, where by you can embed methods within methods is a favourite of mine. A bit like ruby block/yields:

def user_active_count
count = 0
users.each { |e| count += 1 }
count
end

You can do this in C

void user_active_count() {
int count = 0;
void __inc_active_count(const void *nodep, const VISIT which, const int depth) {
if (which == postorder || which == leaf)
count ++;
}
twalk(_username_tree, __inc_active_count);
return count;
}

Beautiful, eh?

Saturday, February 04, 2006

The Big Day Out!

All of this hard work has been making me a little void. You know what they say - all work and no play makes Daniel something, something...So I decided to go to the big day out for some serious play time. Lots of big acts and some not so big acts many of which are faves of mine. Cog, Mudvayne, Wolf Mother and Shihad to name a few. All in all a great day and I certainly felt it the next day! I even managed to catch the stick of Cogs drummer as he flung it into the crowd of some thousand people - definitely a highlight. BDO is certainly not for the faint hearted but for music lovers of all ages its a treat. I even ran into some customers and a couple of well known adelaide sales people! I guess I wasn't the only one slacking off :) Now I've had my day off I'm refreshed and ready to write more glorious code.