Last game was even quicker than the one before it. Felious became Dominus in just over a week. Not only was it the quickest yet it was also the fastest growing and largest. At the end of the game over 100 people were joining every day. Many people seemed excited for next game, I think the Felious/Retribution/Loki group won’t have it so easy in game 11.

The $5.75 prize pool goes to Felious who decided to roll it over to the next game. Game 11 starts with $5.75 in the prize pool

Game 11 will have some market and village changes.

Slava Kim recently implemented Redis in Meteor with the livedata and miniredis packages. I’ve been curious how much faster it is than Mongodb. I’m stuck on a plane so it’s either this or watch Dolphin Tale 2.

Write, read and delete 1,000 times.

On the client.

redis set: 228ms
redis get: 18
redis del: 189
redis total: 435
mongo insert: 365
mongo findOne: 3533
mongo remove: 131
mongo total: 4129

write: redis 1.62 x faster
read: redis 20.2 x faster
delete: mongo 1.4 x faster
total: redis 9.5 x faster

On the server.

redis set: 303
redis get: 128
redis del: 156
redis total: 587
mongo insert: 842
mongo findOne: 890
mongo remove: 615
mongo total…

Meteor’s check package is great for catching bugs. I put it at the top of most functions to make sure that the values passed in are correct.

function (num) {
check(num, Number);
// do important stuff with num

Recently I had some code that divided by zero. Infinity is a number so check(num, Number) didn’t catch it.

check(Infinity, Number); // passes
var x = 10 / 0;
check(x, Number); // passes

Meteor provides a way to create your own match pattern with Match.Where(condition). Instead of using check(num, Number) I now use my own match pattern.

validNumber = Match.Where(function(num) {
return !isNaN(parseFloat(num)) …


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store