Only ever bad luck….

I had an interview on Thursday which went as bad as an interview could go. I knew it was a train wreck as soon as I walked in the door so my heart wasn’t really in it. Getting back into the car at Heworth I saw someone getting out of his and heading for the ticket machine so I wound down my window and gave him my all day ticket. He thanked me profusely and I hoped that somewhere down the line that karma would repay itself……

Since then, we’ve been plagued by kids lobbing eggs at our windows; three times on Saturday, the oven has blown up meaning we couldn’t cook supper on Saturday and both me and my wife have had rejections for jobs we’ve gone for. Would good luck be too much to ask for?

Still, Sunderland won on Saturday………………………………..

Technology Test

As the telephone interview on Thursday night petered out, I’d given up all hope of getting that job. it was in Stockton, which is quite a hike and it was for a Senior Software Designer, which seemed like a lot of responsibility for someone not used to being a leader. The recruitment agent phoned and said they’d liked me but were unsure about my technical skills and so asked me to take the technical test part of the interview first! Sat and done it today and lo and behold, it turns out I can remember more .NET than I thought. Guess we’ll see where that ends up!

Elegant code vs ‘just making it work’

I love being clever. I love clever little tricks, clever little bits of code. So when I’m trying to pass several rows of data from a Php script into Javascript so I can use it to put markers on a Google Map. The really clever thing to do would be to create an array of objects in Php, encode them into JSON and then decode the JSON and use the object notation for each instance of the object

class Incident{
public $incidentDate;
public $desc;
public $latitude;
public $longitude;

public function _construct($incidentDate, $desc, $latitude, $longitude){
$this->incidentDate = $incidentDate;
$this->description = $desc;
$this->latitude = $latitude;
$this->longitude = $longitude;
}
}

But can I make it work?? Nope. So I’ve JSON’ed up each array, passed them in and then used the Javascript Array.prototype.map method to populate my arrays and create my oh so clever markers. Now, should I get them to bounce or not……………………