harriyott.com

Wednesday, November 10, 2004

Patterns and practising

I recently completed an aptitude test, which went rather well. I made sure that I read the instructions really carefully, and asked how I would be measured (lots of answers, with as many right as possible). The first part was questions like:

"Anne is taller than Belinda,
Belinda is taller than Clare,
who is the shortest?"

Clare, obviously. After a few of these, I spotted a pattern. The objective was to work out the order of the three people, and pick the one at the specified end. Never the middle one. The middle one was always mentioned twice in the question, and had to be or there wouldn't be enough info to work out the answer. The middle one would never be the answer to the question, so I could eliminate it straight away.

I saved time by reading the first part of the sentence, the double name and the question bit. In this case, "Anne is taller than Belinda, Belinda, who is the shortest?". It wasn't Anne, or Belinda, so it must be the other one, Clare. It didn't save a lot of time, but I got a few more done than I would have done otherwise, and that was the objective after all.

Last night I played badminton for the first time in years. I used to play singles, and last night it was doubles. The second match I played was with a guy called Patrick, who knew all the tactics and rules. If you hit the shuttlecock low over the net, then move to the front middle section to be ready for the poor return. If you hit it higher, then both move to the side to prepare for the smash. It's really fast, so it was quite hard to remember whilst actually trying to HIT the thing. It's going to take practice.

But still, another patterns thing. I guess I instinctively spot patterns in life, and I do find them interesting and useful.



2 Comments:

Anonymous said...

Whilst I agree that patterns are useful and may form the starting point for an elegant solution to a problem, I do harbour reservations that they are also the bastion of the lower grade developer who - without recourse to a patterns book or website - couldn't think out the problem for themselves and produce a suitable approach themselves.

Am I too harsh?

November 11, 2004 1:28 PM  
Simon said...

No, I don't think you're too harsh. It is always good to think things through, and to know why something is a good idea. I could certainly do with challenging more and accepting less.

On the other hand, for a "lower grade developer", or for that matter anyone who can recognise the need to continually learn from their betters, a patterns book can be a good learning resource, as can an MSDN article, a Linux website or a good chat with an older, wiser developer.

Also, so much of a project is spent on the "domain" stuff (in my case, how car repair estimators work), that anything to reduce coding time is a bonus. After all, why do we buy (for example) chart components when a good developer or team could produce a suitable one? Because it saves time and effort.

A patterns book or website is just one of the many tools we all use to save us from re-inventing the wheel.

November 11, 2004 7:58 PM  

Post a Comment

Links to this post:

Create a Link

<< Home