Benchmarkjs : a very small tool to compare speed

Wanting to quickly figure out which way is the fastest ? Want to see median times in µs ? Download that module : And call benchmark that way : (copy/paste that code, change 'forThisWork' - what to measure, 'theContestants '- who to measure, and 'seedInit' - what data should it use) benchmark({theContestants: {naive: seed… Read More »

Hubot : how to pipeline your commands ?

If you got used to creating new commands in your Hubot server, you will probably remember of this syntax : robot.hear(/say hello/i, function(res) {/*...*/} robot.respond(/how are you/i, function(res) {/*...*/} When you want to combine then into one, the easy way out is to create a spare command like this one : robot.respond(/hello, how are you/i,… Read More »