Testing with Q promises

I just ran into an irritating problem with Q and tests. I do not like asynchronous tests - at all. Firstly, they are hard to read. And secondly, you don't need them. Using a mocking framework like sinon.js, you are able to turn your asynchronous flow into synchronous tests…

Read this article

Excel? Just save it as a .csv! Noooooooo!

So you want to make it possible for your site user to download some data for use in Excel? Well just save it as a .csv! You know; a comma separated values file. No problems. Yes problems The .csv trick works fine. Unless, of course, you want to use any…

Read this article

Oh the pointlessness!

Today, Anders was hard at work with perfecting the logging of a system we're building in Node.js. At one point, he (jokingly) said: -"Why isn't there a console.alert()? Well, now there is: https://github.com/JohanObrink/console.alert ████████████████████████████ ║ ║ ║ The terminal says: ║ ║ Hello World! ║ ║ ╔════╗ ║ ║ ║ OK ║ ║ ║ ╚════╝ ║ ╚════════════════╝ Mission accomplished!…

Read this article