carols in code
geek, humour, social December 20th, 2010Programmers (and all geeks) enjoy Christmas too, so here’s my seasonal take on the #songsincode Twitter hashtag game. How many can you get?
var wenceslas = new Person({
rank: 'king',
alignment: 'good'
});
$.bind(FeastOfStephen, function() {
wenceslas.lookOut();
});
night.volume(0); night.opacity(0.5); night.objects.velocity(0.0,0.0); night.objects.gamma(1.0);
foreach (Person ye: people) {
if (ye.isFaithful() && ye.isJoyful() && ye.isTriumphant()) {
bethlehem.add(ye);
}
}
if (lord.isCome()) {
$('*').addClass('joy');
$.post('earth://', { king: lord });
$('heart').each(function() { this.addCapacity(sizeof(lord)); }
}
class God {
...
function rest() {
foreach ($gentlemen as $man) {
if ($man->merry) {
$man->rest();
$man->dismay = array();
}
}
}
...
}
we.each { | one |
one.wish(you, MERRY_CHRISTMAS);
one.wish(you, HAPPY_NEW_YEAR)
}
Inspired by Retro Programming. Feel free to submit your own!
Merry Christmas, and may all your Christmases be #ffffff!


December 20th, 2010 at 3:05 pm
goose.get(fat);
if (cashAvailable > penny)
{
oldman.getHat().add(penny);
}
else if (cashAvailable > hapenny);
{
oldman.getHat().add(hapenny);
}
else if (cashAvailable > farthing)
{
oldman.getHat().add(farthing);
}
else
{
God.bless(you);
}
December 20th, 2010 at 3:06 pm
Argh, misplaced semi-colon. I’ll hand my badge and my code gun in at the desk.
December 20th, 2010 at 3:10 pm
I don’t think much of your repeated oldman.getHat() method chaining either. Get out.
December 20th, 2010 at 3:27 pm
Ciaran, I wouldn’t pass that oldMan.getHat() malarkey from a grad. Clearly there is only one solution: MANAGEMENT.
December 20th, 2010 at 3:45 pm
Hey, I was attempting to mirror the repeated structure of the song. Fine, how’s this:
ArrayList noels = getNoels();
Collection shepherds = fields.getShepherds();
angels.say(noels.get(0), shepherds);
December 20th, 2010 at 3:46 pm
Hmmm, comment thing ate left and right chevrons.
to you all, and to all a good
December 20th, 2010 at 3:47 pm
Better, assuming your ArrayList is already sorted. Unlike certain data I have seen lately
December 20th, 2010 at 3:48 pm
…and also assuming you’re in pre-1.5 and / or not supposed to be using typed collections.
December 20th, 2010 at 3:50 pm
I was talking his word for it that your blog had eaten the types due to < and > #frontenddevknowsHTMLentities
December 20th, 2010 at 3:51 pm
Ah, stupid comment thing. Fair enough.
December 20th, 2010 at 4:02 pm
No, data sanitazation is good.
Otherwise some unscrupolous person could dump some javascript like:
alert(“XSS”);
into a comment and get it to fire.
Could be done smarter though, and is a pain for trying to enter code stuff.
December 20th, 2010 at 4:04 pm
And case in point, the script tags around that got et, rather than processed. (Which is what I was checking would happen
)
December 20th, 2010 at 4:12 pm
Oi, quit trying to h@xx0r my comments!
December 20th, 2010 at 4:19 pm
public Sleigh sleigh;
public void dashThroughSnow()
{
int horses = 1;
sleigh = new Sleigh(horses);
for (Field field : fields)
{
laugh();
}
}
December 23rd, 2010 at 10:46 pm
Fantastic, your Good King Wenceslas is among my favourites.
December 24th, 2010 at 1:01 am
try {
God.getInstance().rest(merryGentleman);
} catch(TheologyError error) {
log(“God not found”);
Christmas.abort();
}
December 24th, 2010 at 7:45 am
your god class is an anti-pattern. -1
func comeletusadorehim(){
comeletusadorehim()
//TODO Insert christ clause
}
December 24th, 2010 at 9:37 am
Which antipattern? A do-it-all class? That’s sort of the point of God though, isn’t it? Anyway, you have to expect things like this, it’s not like the universe was designed or anything.
we.each { | one | one.wish(you, MERRY_CHRISTMAS); one.wish(you, HAPPY_NEW_YEAR) }December 24th, 2010 at 12:43 pm
God the devine constructor.
Enjoy the holidays!
April 10th, 2013 at 5:00 am
The manager strattera prices 6. A. Reason For
April 10th, 2013 at 5:08 am
I’ve lost my bank card pornseksvideo
nice….very sexy……
April 10th, 2013 at 5:09 am
A few months boobieblog
Hammerfrau….für nen Fick mit ihr dürfte der Riesenpimmel mich auch durchnageln…
April 10th, 2013 at 5:17 am
Why did you come to ? http://community.parents.com/asumouooi/blog/2013/04/04/lolita_kingdom_nude_pics brazilian young girls lolita Not especially, honestly. He drinks a lot of water and he tries to eat relatively well, but that’s all. I just naturally love his taste, I guess.
April 10th, 2013 at 5:17 am
How much notice do you have to give? little nude lolita preeteens not such a nice looking girl..but i reckon she could scrub up well with a minor makeover..fabulous body. great set of tits and awesome areola.nice frontal riding sequence. cum to body would of been better than shooting the sofa!! lol.great clip.