Diary of a geek

October 2004
Mon Tue Wed Thu Fri Sat Sun

Andrew Pollock


Other people's blogs


RSS feed

Contact me

JavaScript required

Saturday, 09 October 2004

Programming by accident sux

Recursion is obviously one of those things you either get, or you don't get. The lecturer said it's one of the hardest things to get if you've got programming experience and haven't been using it.

I went around to Rick's to get some help with the current COMP1110 assignment, and we ended up scribbling on a whiteboard from about 7pm till after 4am. I think if either of us got recursion, it would have been trivial, but because neither of us seemed to have that enlightenment, we had to resort to what Rick calls "programming by accident" - having a stab until it works, which for a recursive algorithm is all the harder. Having a whiteboard helped, but I still think we managed to make a meal of the problem.

So now I can annotate my tree, with an implementation that is questionable in my opinion, compared to what Google had to about the algorithm.

Next stop, pruning the tree. I'm hoping (and thinking) that that is going to be a rather trivial exercise in wandering around the tree lopping off branches.

[23:03] [uni] [permalink]


I'm absolutely appalled that Howard has been returned to office.

I can't believe that the Iraq war wasn't more of an election issue. The fact that the Australian people have not only chosen to reelect, but swing towards, a government that supported the US' unilateral invasion of Iraq sends the wrong message to the rest of the world. It says that the Australian people are okay with this kind of thing. It wasn't that long ago that thousands of people marched in protest against the military action in Iraq. Did all these people just forget when they got to the ballot box?

[11:05] [politics] [permalink]