Geeky baby announcments

A couple of years ago, we announced the impending arrival of small ginger #3.  My Mrs, however, is the shy type and didn’t want me to broadcast it on social media.  I made a deal with her that I could do it if I wrote it in code.  I was just surfing through my Facebook timeline and found it again and thought I’d share since it made me laugh. Written in AS3, for my sins. :-/


package com.humanity
{

/**
* @author andrewdobson.co.uk
*/

import dobson.family.*;
public class Dobsons extends Family
{
private var parents:Vector.<Human>;
private var children:Vector.<SmallHuman>;
public function Dobsons()
{
super();
parents = new Vector.<Human> = ["Andy", "Sam"];
children = new Vector.<SmallHuman> = ["Theo", "Rowie"];
if(var now:Date = new Date() == var due:Date = new Date(2013,3))
{
var baby:SmallHuman = new SmallHuman({_g:Gender = Human.type[Math.random()]});
children.push(baby);
welcome();
panic();
}
}

private function welcome():void
{
trace(children.length);
children[children.length-1].echo("Hello World!");
}
//panic!
private function panic():void
{
for each(var parent:Human in parents)
{
break;
}
}
}
}

About Andrew

I am a technical director, creative technologist and digital strategist who has been working in the web industry for 15 years. An early online user from the days of Prestel and BBS systems, I am a self-taught technologist and developer who has been immersed in the creative possibilities of digital technology from childhood. My career path has taken many turns, from the heady dot-com agency days, through the corporate world and the variety of experience which freelance brings. Throughout, my goal has been to help organizations and brands realise the potential that the art and science of being digital can achieve, and to help them create opportunities to better use the most important emerging medium of our time. I am a strong advocate for digital as a multi-disciplinary medium, with an enviable record in building and retaining teams, and in the importance of the creative disciplines of collaboration, vision, practicing and failing in order to push things forward.

1 comment

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>